Link to home
Start Free TrialLog in
Avatar of wee_liang
wee_liang

asked on

ps -ef

Whenever one wants to look at what process the system is
running, we usually use the command "ps -ef | grep $LOGNAME"
One of the problems I have is that the output does not show
the entire command that was executed.  The command line
gets truncated after (around) 80 characters or so.  What
options should I set (or what other command can I run) in
UNIX to enable me to look at the process command string in
it's entirety?
Avatar of sergik
sergik

Hi!

Try to add to your command line "www" (ps -efwww).
It works good for SunOS 4.1.4 and 5.5.1
Avatar of wee_liang

ASKER

Sorry that I didn't decribe the Unix OS clearly.  I've tried
this command you suggested ps -efwww on HP OS 9.X and it doesn't
know what that means.

Thanks for your suggestion anyway.

Any others could provide me a solution?
ASKER CERTIFIED SOLUTION
Avatar of jlms
jlms

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
how about  -l  option? or just use
  man ps
It is unlikely that 'ps' is truncating your output at 80 chars.
What is more likely is that your terminal definition needs
altering so that long lines wrap around your screen and continue
on the following line. 'ps -efl' definitely works on HP-UX 10.xxx
depends on the OS and the version of ps. If you're using
"-ef", you're running on a SysV system, and SysV ps is pretty basic compared to BSD ps. Get a copy of BSD ps and compile it.
For example, I run "lps -auxw" and get everything. The "w" means "wider", so you should use it.