On Thu, Sep 07, 2000 at 01:32:59PM -0500, Alan Mead wrote:
> I have a perl script. To make sure it is running, I do a 'ps aux' and see
> something like on my screen:
>
> [amead@hera amead]$ ps aux
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 1 0.0 0.1 1104 72 ? S Jul05 5:50 init [3]
> ...
> root 22461 0.1 3.0 2840 1904 pts/1 S 13:07 0:01 perl -w
> /usr/sbin/sendreports
> ...
>
> But if I try to pipe the output into grep looking for 'sendreports' I get
> nothing. If I grep for perl, I get part of the command line:
>
> [amead@hera amead]$ ps aux | grep -i sendreport
> [amead@hera amead]$ ps aux | grep -i perl
> root 22461 0.1 3.0 2840 1904 pts/1 S 13:07 0:01 perl -w
> /usr/sbin
> amead 22570 0.0 0.6 1164 428 pts/2 S 13:28 0:00 grep -i perl
>
> Why does ps truncate it's output?
ps tries to query the current window size of the controlling tty so
that it doesn't put more than one line per process on the screen.
When that check fails (the controlling tty is a file), it defaults to
80 chars.
man isatty
--
Steve Borho Voice: 314-439-8342
Member of Technical Staff
Celox Networks Inc http://www.ietf.org/rfc/rfc1925.txt
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list