truncated output from ps

  • Follow


Does anyone know a way of getting the full process name/args from the
ps -ef output (on Solaris  6,8 and 10) without truncating it to
80bytes?
I know you can run "/usr/ucb/ps -auxwww" but not all our Solaris boxes
have this.

Thanks,

Ed.

0
Reply edwardquick (6) 8/15/2006 12:06:33 PM

Ed <edwardquick@hotmail.com> wrote:
> Does anyone know a way of getting the full process name/args from the
> ps -ef output (on Solaris  6,8 and 10) without truncating it to
> 80bytes?

Not possible.

-- 
Daniel
0
Reply Daniel 8/15/2006 1:43:55 PM


In <ebsj2r$1h4o$1@server.rock.net> "Daniel Rock" <v200633@deadcafe.de> writes:

>Ed <edwardquick@hotmail.com> wrote:
>> Does anyone know a way of getting the full process name/args from the
>> ps -ef output (on Solaris  6,8 and 10) without truncating it to
>> 80bytes?

>Not possible.

The `pargs' command may do what you want.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
0
Reply Gary 8/15/2006 2:06:27 PM

Ed wrote:
> Does anyone know a way of getting the full process name/args from the
> ps -ef output (on Solaris  6,8 and 10) without truncating it to
> 80bytes?
> I know you can run "/usr/ucb/ps -auxwww" but not all our Solaris boxes
> have this.
>
> Thanks,
>
> Ed.

You can use /usr/ucb/ps auxwww, but on Solaris 10 you have to make sure
that you have rights to run this command as Admin or you must be the
owner of the process to be able to see its full cmdline.

-Dexthor.

0
Reply Dexthor 8/15/2006 2:10:05 PM

Dexthor wrote:

> Ed wrote:
> > Does anyone know a way of getting the full process name/args from the
> > ps -ef output (on Solaris  6,8 and 10) without truncating it to
> > 80bytes?
> > I know you can run "/usr/ucb/ps -auxwww" but not all our Solaris boxes
> > have this.
> >
> > Thanks,
> >
> > Ed.
>
> You can use /usr/ucb/ps auxwww, but on Solaris 10 you have to make sure
> that you have rights to run this command as Admin or you must be the
> owner of the process to be able to see its full cmdline.
>
> -Dexthor.

Thanks for everyone's replies. I can't find pargs on Solaris 6 and 8 (I
haven't been able to test on Solaris 10 yet). Also, as I said above,
not all our boxes have the /usr/ucb/ps.
As the first reply said, I think this might be impossible!

0
Reply Ed 8/15/2006 3:23:15 PM

Perhaps "pstack pid" or "pfiles pid" will give you more information.

-Jeff

0
Reply jeffhigham 8/15/2006 9:29:50 PM

jeffhigham@gmail.com wrote:

> Perhaps "pstack pid" or "pfiles pid" will give you more information.
>
> -Jeff

Thanks. Unfortunately that doesn't work either.

$ /usr/ucb/ps -auxwww | grep 24333
root     24333  0.0  0.112960 4464 ?        S   Jul 27  0:04
/opt/apache_2.0.54/bin/httpd -f
/b7/apache/b7uat08/conf/b7uat08-secure.conf -DSSL -k start


$ pstack 24333
24333:  /opt/apache_2.0.54/bin/httpd -f
/b7/apache/b7uat08/conf/b7uat08-secure
-----------------  lwp# 1 / thread# 1  --------------------

$ pfiles 24333
24333:  /opt/apache_2.0.54/bin/httpd -f
/b7/apache/b7uat08/conf/b7uat08-secure
  Current rlimit: 2048 file descriptors

0
Reply Ed 8/16/2006 12:33:53 PM

6 Replies
373 Views

(page loaded in 0.119 seconds)

Similiar Articles:











7/25/2012 9:38:47 PM


Reply: