Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ps: a probelm

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
hello,
I write a script that puts the output of 'ps -elf' command to a log.
The problem is that when I write 'ps -elf' (even by using it on the command-line) , it cuts the process-column,on the middle and this column is very important for me.
On the other side, I must use the -l switch, because I want to know how much memory is taken by every process. May someone know how to print the full process-command ?

thanx
btw: This problem occurs on sun . on AIX it works fine.
 
Most 'ps' commands have a -w (or -ww) switch which enables a wide display mode which isn't limited to the usual 80 chars.


--
 
And most
Code:
 ps
commands have a
Code:
 -o
option to choose needed columns.
So:
Code:
 man ps

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top