ps question

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
rvaede [ Mo, 26 November 2007 21:19 ] [ ID #1878675 ]

Re: ps question

rvaede [at] 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 [ Mo, 26 November 2007 21:58 ] [ ID #1878676 ]

Re: ps question

Cyrus Kriticos wrote:
> rvaede [at] 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

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.
Cyrus Kriticos [ Mo, 26 November 2007 22:04 ] [ ID #1878677 ]

Re: ps question

On Nov 26, 4:04 pm, Cyrus Kriticos <cyrus.kriti... [at] googlemail.com>
wrote:
> Cyrus Kriticos wrote:
> > rva... [at] 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
>
> 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
rvaede [ Mo, 26 November 2007 22:23 ] [ ID #1878679 ]

Re: ps question

rvaede [at] gmail.com wrote:
> On Nov 26, 4:04 pm, Cyrus Kriticos <cyrus.kriti... [at] googlemail.com>
> wrote:
>> Cyrus Kriticos wrote:
>>> rva... [at] 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
>> better:
>> for unlimited width add -ww to ps
>
> 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.
Cyrus Kriticos [ Mo, 26 November 2007 22:28 ] [ ID #1878680 ]

Re: ps question

On Nov 26, 4:28 pm, Cyrus Kriticos <cyrus.kriti... [at] googlemail.com>
wrote:
> rva... [at] gmail.com wrote:
> > On Nov 26, 4:04 pm, Cyrus Kriticos <cyrus.kriti... [at] googlemail.com>
> > wrote:
> >> Cyrus Kriticos wrote:
> >>> rva... [at] 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
> >> better:
> >> for unlimited width add -ww to ps
>
> > 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.- Hide quoted text -
>
> - Show quoted text -

You are absolutely right when I put the path in it worked. Thank you
rvaede [ Mo, 26 November 2007 22:41 ] [ ID #1878682 ]
Linux » comp.unix.shell » ps question

Vorheriges Thema: Re: Computer to Computer Video teleconferencing software with encryption
Nächstes Thema: reading lines from standard input or a two way pipe into an array