Unix Shell - ps question

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > November 2007 > ps question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ps question
rvaede@gmail.com

2007-11-26, 7:21 pm


Solaris 10.
I am doing a /usr/ucb/ps -aux | sort -k 3 - this will sort the
process by highest cpu

I want to capture the whole path of the process, which is on the
very far right.
When I use this command it truncates the process.

Any hints. Thanks
Cyrus Kriticos

2007-11-26, 7:21 pm

rvaede@gmail.com wrote:
> Solaris 10.
> I am doing a /usr/ucb/ps -aux | sort -k 3 - this will sort the
> process by highest cpu
>
> I want to capture the whole path of the process, which is on the
> very far right.
> When I use this command it truncates the process.


add -w to ps

--
Best regards | (\_/)
Cyrus | (O.o) This is Bunny. Copy Bunny into your signature
| (> < ) to help him on his way to world domination.
Cyrus Kriticos

2007-11-26, 7:21 pm

Cyrus Kriticos wrote:
> rvaede@gmail.com wrote:
>
> add -w to ps


better:
for unlimited width add -ww to ps

--
Best regards | (\_/)
Cyrus | (O.o) This is Bunny. Copy Bunny into your signature
| (> < ) to help him on his way to world domination.
rvaede@gmail.com

2007-11-26, 7:21 pm

On Nov 26, 4:04 pm, Cyrus Kriticos <cyrus.kriti...@googlemail.com>
wrote:
> Cyrus Kriticos wrote:
>
>
>
> better:
> for unlimited width add -ww to ps
>
> --
> Best regards | (\_/)
> Cyrus | (O.o) This is Bunny. Copy Bunny into your signature
> | (> < ) to help him on his way to world domination.


in solaris 10 . ps doesn't support the -w
Cyrus Kriticos

2007-11-26, 7:21 pm

rvaede@gmail.com wrote:
> On Nov 26, 4:04 pm, Cyrus Kriticos <cyrus.kriti...@googlemail.com>
> wrote:
>
> in solaris 10 . ps doesn't support the -w


You wrote "/usr/ucb/ps" not "/usr/bin/ps"

--
Best regards | (\_/)
Cyrus | (O.o) This is Bunny. Copy Bunny into your signature
| (> < ) to help him on his way to world domination.
rvaede@gmail.com

2007-11-26, 7:21 pm

On Nov 26, 4:28 pm, Cyrus Kriticos <cyrus.kriti...@googlemail.com>
wrote:
> rva...@gmail.com wrote:
>
>
> You wrote "/usr/ucb/ps" not "/usr/bin/ps"
>
> --
> Best regards | (\_/)
> Cyrus | (O.o) This is Bunny. Copy Bunny into your signature
> | (> < ) to help him on his way to world domination.- Hide quoted text -
>
> - Show quoted text -


You are absolutely right when I put the path in it worked. Thank you
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com