1748027 Members
4225 Online
108757 Solutions
New Discussion юеВ

Re: ps in linux rh es3

 
SOLVED
Go to solution
Asaf_11
Occasional Advisor

ps in linux rh es3

I'm using ps -ef in redhat ES3 and want to see the command i started.

the output of the command line is chunkd and I cannot see the all command.(It's work fine in ES4)

I can see the full cmd line in /proc/pid/cmdline but i still want to see it also with ps.
(maybe there is a flag like ps -efx in hpux)?



7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: ps in linux rh es3

Asaf,

The command line parameters are different than HP-UX, but there are equivalencies to most HP-UX ps functionality.

Its' buried deep in the man page, ut its there.

I'll look but you might want to read the man page, you'll probably find it faster than me.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Asaf_11
Occasional Advisor

Re: ps in linux rh es3

thanx but i read the man pages and didnt found the way to do it

i thought that maybe someone had the same problem and know how to solve it

thanx
Ajitabh Pandey
Occasional Contributor
Solution

Re: ps in linux rh es3

The output of ps command depends on lots of environment variables among those is COLUMNS, check the man page for more variables. You can specify the value of columns to a large value and then do the following:

$ (export COLUMNS=1220;ps -axu)

Work identical in Debian Sarge and RHEL AS3

HTH
Ivan Ferreira
Honored Contributor

Re: ps in linux rh es3

The ps auxw command should work.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Huc_1
Honored Contributor

Re: ps in linux rh es3

The thing to do is add w as parameter to command

ex: ps efww
ps -auxwww

one or many ww .. does it help ?

Jean-Pierre Huc
Smile I will feel the difference
Asaf_11
Occasional Advisor

Re: ps in linux rh es3

thanx,

the auxww and the export COLUMNS did the work
auxw didnt work
Asaf_11
Occasional Advisor

Re: ps in linux rh es3

I'm closing the thread