sunos

Get Yesterday's date in solaris

百般思念 提交于 2019-12-01 05:16:50
I am running SunOS. bash-3.00$ uname -a SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc I need to find Yesterday's date in linux with the proper formatting passed from command prompt. When I tried like this on my shell prompt- bash-3.00$ date --date='yesterday' '+%Y%m%d' date: illegal option -- date=yesterday usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff] I always get date illegal option , why is it so? Is there anything wrong I am doing? Update:- bash-3.00$ date --version date: illegal option -- version usage: date [-u] mmddHHMM[[cc]yy][.SS]

Get Yesterday's date in solaris

蓝咒 提交于 2019-12-01 02:09:44
问题 I am running SunOS. bash-3.00$ uname -a SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc I need to find Yesterday's date in linux with the proper formatting passed from command prompt. When I tried like this on my shell prompt- bash-3.00$ date --date='yesterday' '+%Y%m%d' date: illegal option -- date=yesterday usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff] I always get date illegal option , why is it so? Is there anything wrong I am doing? Update

Folders tree with rights

六月ゝ 毕业季﹏ 提交于 2019-11-29 22:02:02
问题 In OS X and SunOS OS there is no exist the 'bash tree command'. To plot a tree "graph" of folders i use the following instruction: find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' Or this to show files too. find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' But i need another version which contains also the folders rights. Im pretty lost to add on the right side the folder rights. Anyone have any idea ?? Update: There are any option to plot the files inside the folders and

How to get the command line args passed to a running process on unix/linux systems?

非 Y 不嫁゛ 提交于 2019-11-27 05:50:16
On SunOS there is pargs command that prints the command line arguments passed to the running process. Is there is any similar command on other Unix environments? markus_b There are several options: ps -fp <pid> cat /proc/<pid>/cmdline | sed -e "s/\x00/ /g"; echo There is more info in /proc/<pid> on Linux, just have a look. On other Unixes things might be different. The ps command will work everywhere, the /proc stuff is OS specific. For example on AIX there is no cmdline in /proc . This will do the trick: xargs -0 < /proc/<pid>/cmdline Without the xargs, there will be no spaces between the

How to get the command line args passed to a running process on unix/linux systems?

点点圈 提交于 2019-11-26 11:45:31
问题 On SunOS there is pargs command that prints the command line arguments passed to the running process. Is there is any similar command on other Unix environments? 回答1: There are several options: ps -fp <pid> cat /proc/<pid>/cmdline | sed -e "s/\x00/ /g"; echo There is more info in /proc/<pid> on Linux, just have a look. On other Unixes things might be different. The ps command will work everywhere, the /proc stuff is OS specific. For example on AIX there is no cmdline in /proc . 回答2: This will