Re: OT: Terminal ps grep window size issue?
Re: OT: Terminal ps grep window size issue?
- Subject: Re: OT: Terminal ps grep window size issue?
- From: Rodrigo Ávila Ferreira <email@hidden>
- Date: Sat, 19 Feb 2005 15:04:58 -0200
Hi!
Try to use another size of window with the -w option:
ps aux -w |grep iTunes.app
The -w option will use 132 columns instead your current window size.
See more on man ps
Regards,
Rodrigo Ávila
On 2/18/05 4:02 PM, "Jake Pietrykowski" <email@hidden> wrote:
> Hi all,
>
> I'm aware this is off topic, but perhaps some unix savvy users may have a
> suggestion, or explanation.
>
> I'm in the terminal, attempting to find a running process for a given
> application, but I'm encountering some rather odd issues, pertaining to the
> size of the terminal window?
>
> In the terminal window I do the following:
>
> ps -aux | grep SomeApplicationName.app
>
> The above line should return me a list of the process containing the
> SomeApplicationName.app
>
> Well...what happens is I execute that command, and I get no results.
> However, if I just simply 'expand' the Terminal window, so the results will
> 'fit', I get the desired results.
>
> Is grep only scanning the contents of the Terminal window? I'm have a shell
> script I made, which runs every 5 minutes as a cron job, and it's not
> executing. Permissions all set, etc... However, if I run the script manually
> from the terminal WITH the window open wide enough...it all works OK?
>
> Why is the size of the window affecting my grep command? Alternate methods?
>
> Thanks if any suggestions,
> Jake
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> m.br
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden