|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Formatted 'ps'
Hey all,
I'm on a Solaris box, and I'm trying to get some formatted ps data by running: Code:
$ ps -efl -o "pcpu pmem args" Trouble is, the command arguments field get's truncated. Here's the problem, a don't have access to the gnu version of ps, and the UCB ps (/usr/ucb/ps) does not have the formatting option. Any ideas on how to untruncate the output from solaris's ps?
__________________
- dsb - ![]() Perl Guy |
|
#2
|
|||
|
|||
|
No, unfortunately that is the way it is. /usr/ucb/ps -auxww will give you the complete output but, as you said, it doesn't have the same formatting options. I'm not sure why Sun didn't add the "-x" option to ps like AIX or HP/UX.
A pretty simple awk script could take the output of /usr/ucb/ps and print it the way you want though.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums. |
|
#3
|
|||
|
|||
|
i'm not at all familiar with awk...can you elaborate?
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Formatted 'ps' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|