solaris

Transpose rows into column in unix

风流意气都作罢 提交于 2019-12-03 08:37:31
I have input file which is given below Input file 10,9:11/61432568509 118,1:/20130810014023 46,440:4/GTEL 10,9:11/61432568509 118,1:/20130810014023 46,440:4/GTEL Output which i am looking for. 10,9:11/61432568509,118,1:/20130810014023,46,440:4/GTEL 10,9:11/61432568509,118,1:/20130810014023,46,440:4/GTEL I have tried with awk command, but i am not getting desired output. can anyone help me in this? awk -F"" '{a[$1]=a[$1]FS$2}END{for(i in a) print i,a[i]}' inputfile devnull Using awk : $ awk 'ORS=(NR%3==0)?"\n":","' inputfile 10,9:11/61432568509,118,1:/20130810014023,46,440:4/GTEL 10,9:11

Is there a wget command for Solaris 10

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Solaris 11 has wget command, like Linux's. Is there wget or wget like command for Solaris 10? 回答1: The wget command in Solaris 10 is somewhat hidden from sight. You can find it here /usr/sfw/bin/wget This was checked on s10u10 回答2: My Solaris system has it installed, but I do not control the image we use to install it. I see this: $ which wget /usr/sfw/bin/wget $ wget --version GNU Wget 1.12 built on solaris2.10. $ pkginfo -l SUNWwgetr PKGINST: SUNWwgetr NAME: GNU wget - utility to retrieve files from the World Wide Web (root) CATEGORY:

Getting around truncated “ps”

血红的双手。 提交于 2019-12-03 08:26:44
问题 I'm trying to write a script that will find a particular process based on a keyword, extract the PID, then kill it using the found PID. The problem I'm having in Solaris is that, because the "ps" results are truncated, the search based on the keyword won't work because the keyword is part of the section (past 80 characters) that is truncated. I read that you can use "/usr/ucb/ps awwx" to get something more than 80 characters, but as of Solaris 10, this needs to be run from root, and I can't

Solaris - Why is java.lang.UNIXProcess.forkAndExec(Native Method) hanging

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a java application running on Solaris. This application regularily launches external processes using Runtime.exec. It seems that after a while, having successfully launched such processes many time over, a launching of a process will hang. A thread dump taken at this point (and several minutes later) reveals that java.lang.UNIXProcess.forkAndExec is "stuck". Following is the top of the relevant stack trace taken from the thread dump: "Thread-85305" prio=3 tid=0x0000000102aae800 nid=0x21499 runnable [0x7fffffff2a3fe000] java.lang

Check a files Modified date and email if it has changed [closed]

元气小坏坏 提交于 2019-12-03 01:28:23
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I am look for a bash script that will check if a file has been modified in the last hour and email an alert if it has been modified. This script will be used in Solaris and Ubuntu. I am sure it's not hard, but I am not a Linux admin. Can someone please help? How about this? #!/bin/bash [[ -z `find /home/spatel/ -mmin -60` ]] if [ $? -eq 0 ] then echo -e "nothing has changed" else mail -s "file has been changed" spatel

P/Invoke in Mono

蓝咒 提交于 2019-12-03 01:22:01
What's the current status of Mono 's Platform Invoke implementation on Linux? And on Solaris? Working, usable and stable. It's well tested since quite a lot of mono's own low-level functionality has to be marshaled through it to the underlying operating system. There are some P/Invoke extensions when compared to Microsoft .Net implementation (after all they deal with a single OS family and three architectures at most). Most notable of those would be that library mappings transform the library name to OS-specific variants (e.g. mylib.dll searches for mylib.so on Linux, mylib.dylib on OS X and

Building Node.JS on Solaris: “Use of <stdbool.h> is valid only in a c99 compilation environment.”

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am attempting to install Node.JS on Solaris. This is out of the box Solaris 9/10 x86 (September 2010 which is most recent) and using only default packages. The directions I am following are here: https://github.com/joyent/node/wiki/Installation . I am using the latest stable version of Node.JS found on their home page http://nodejs.org Here is what I have tried... -bash-3.00# export PATH=$PATH:/usr/sfw/bin:/usr/xpg4/bin -bash-3.00# ./configure --prefix=/tmp/node Checking for program g++ or c++ : /usr/sfw/bin/g++ Checking for program cpp :

Solaris sed label too long

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to execute a shell file, in which there is a line: sed -ne ':1;/PinnInstitutionPath/{n;p;b1}' Institution | sed -e s/\ //g | sed -e s/\=//g | sed -e s/\;//g | sed -e s/\"//g | sed -e s/\Name//g And un error message turns out : "Label too long: :1;/PinnInstitutionPath/{n;p;b1}" I am a noob at linux, so can anyone help me to solve this problem, thank you! 回答1: Try changing sed -ne ':1;/PinnInstitutionPath/{n;p;b1}' to sed -ne ':1' -e '/PinnInstitutionPath/{n;p;b1}' Also, you don't need to call sed so many times: sed -ne 's/[ =;"]/

how to grep one string occuring multiple times from same file

杀马特。学长 韩版系。学妹 提交于 2019-12-02 23:45:36
问题 I want to capture a string 1 row affected.. . But problem is there are no of such string present in the same file. My concern to capture 1 row affected.. only which is present after the string UPDATE kplustp..Service SET Service_Name = "PositionService", ServiceType = \'Z\', Hostname = " " in log file. 1 row affected.. will be present after 3 4 sentences from Job completed successfully . I am working on solaris. How to do? 回答1: perl -e 'while (<>) { if (/job completed successfully/) { $flag=1

Solaris10 安装

匿名 (未验证) 提交于 2019-12-02 23:43:01
2019独角兽企业重金招聘Python工程师标准>>> 要开始折腾Solaris了 从后台组的同事那里弄来了一个2G多的solaris10的ISO安装文件。 开始在自己的电脑上虚拟机上安装solaris。 把虚拟机设置好后,随便就安装了,安装过程基本就是回车按F2了。 网上也有安装教程,搜一下就出来了。这里从网上Copy一下过来Show一下得了。 找了几个网址,下面这个有截图(本人安装后才发现这网址): http://xiaoduan.blog.51cto.com/502137/126301 顺便把安装的html也Copy过来。 先将虚拟机的光驱指向到Solaris10的iso镜像文件,内存大约1个G左右,硬盘40个G。 出现这个画面的时候直接敲回车,或者在1分钟后默认选择第一个选项。 这里选择安装模式,按1选择默认安装,或者在30秒后默认选择第一个选项。 选择以后会自动加载安装文件。 这里选择键盘的布局,默认就是我们使用的美国英文键盘。 这里按回车键以后会启动Solaris10的对话控制台安装界面,如果不按任何键,30秒后会默认进入控制台(无窗口)模式。 把鼠标箭头移动到这个窗口里,按回车键继续。 这里选择界面语言。我选的是0 English,大家也可以选择6 Simplified Chinese 。 这是安装的欢迎界面,并显示有很多设置需要被确认。