Jobs with a long command-line is not printing in Solaris:
bash-3.2$ /usr/ucb/ps auxwww | grep ftf | awk '{print $NF}' | head -5
/proj/cmp01/app/btws/cfg/btw
/proj/cmp01/app/btws/cfg/btw
/proj/cmp01/app/btws/cfg/btw
/proj/cmp01/app/btws/cfg/btw
/proj/cmp01/app/btws/cfg/btw
bash-3.2$ /usr/ucb/ps -alxww | grep -v "alxww" | grep ftf | grep -v grep|head -5
0 39548 737 693 0 50 20 5112 3952 603110c3e70 S ? 249:55 /usr/bin/bash
/proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btw
0 39548 906 871 0 50 20 4568 3488 6034bfbf348 S ? 245:12 /usr/bin/bash
/proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btw
0 39548 2512 2480 0 50 20 4552 3544 603d5120df8 S ? 134:04 /usr/bin/bash
/proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btw
0 39548 2523 2496 0 50 20 4728 3688 602fcee1d28 S ? 135:43 /usr/bin/bash
/proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btw
0 39548 2557 2535 0 50 20 4472 3480 603df1e0838 S ? 133:48 /usr/bin/bash
/proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btw
It is chopping off part of the configuraton file.
I also cannot use pargs
:
bash-3.2$ for i in `/usr/ucb/ps -alxww | grep -v "alxww" | grep ftf | grep -v gr
ep| awk '{print $3}'|head -3`; do pargs $i; done
pargs: cannot examine 737: permission denied
pargs: cannot examine 2512: permission denied
pargs: cannot examine 2523: permission denied
bash-3.2$
I checked this question, but I couldn't get the complete arguments:
ps
printing thepid
as the second or third column? Surely you don't have five processes, all with the pid39548
? – Mikel Jul 01 '14 at 15:20/usr/bin/bash
& there are 5 records. – Tingrammer Jul 02 '14 at 04:22ps
is printing pid in 3rd column, updating the question – Tingrammer Jul 02 '14 at 04:25/usr/ucb/ps auxwww | grep ftf
command in elevated user, it gave me complete ans.dcmh228z:dcmp01 $/usr/ucb/ps auxwww | grep ftf | head -2 dcmp01 807 0.1 0.0 4392 3520 ? S 18:14:31 1:24 /usr/bin/bash /proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btws_wirwtx.cfg dcmp01 13075 0.0 0.0 4192 3320 ? S 19:54:01 0:00 /usr/bin/bash /proj/cmp01/app/ftf/bin/ftf.sh -y -c /proj/cmp01/app/btws/cfg/btws_wlbai.cfg
– Tingrammer Jul 02 '14 at 09:55