Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 08:03:07 GMT
From:      brian@FreeBSD.org
To:        rivanr@gmail.com, brian@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/137647: ps(1) output depends on terminals column width when piping or redirecting
Message-ID:  <200908250803.n7P8373T068548@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: ps(1) output depends on terminals column width when piping or redirecting

State-Changed-From-To: open->closed
State-Changed-By: brian
State-Changed-When: Tue Aug 25 07:56:45 UTC 2009
State-Changed-Why: 
I agree with Michael.  ps(1) checks stdout, stderr then stdin to see if
it's a tty, and if none are will set the width to 79.

Scripts should either use pgrep or pkill, or else use ps -ww and also
possibly -o comm or -o command.

http://www.freebsd.org/cgi/query-pr.cgi?pr=137647



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908250803.n7P8373T068548>