Date: Fri, 7 May 2010 20:17:59 +1000 From: andrew clarke <mail@ozzmosis.com> To: Bastien Semene <bsemene@cyanide-studio.com> Cc: freebsd-questions@freebsd.org Subject: Re: Number of columns when redirecting ps command stdout to a file Message-ID: <20100507101759.GA58651@ozzmosis.com> In-Reply-To: <4BE3E2FF.5000803@cyanide-studio.com> References: <4BE3E2FF.5000803@cyanide-studio.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri 2010-05-07 11:53:03 UTC+0200, Bastien Semene (bsemene@cyanide-studio.com) wrote: > I wish to log the 'ps' command output in a file through a cron job. > If I execute the command on the console, the result lines are > truncated depending on the number of columns of the client console, > what is fine. > > But when the command is executed by cron and redirected to a file, > there's a maximum of 80 char columns. Where is set this limitation ? > How can I remove it ? >From the ps(1) man page: "If the -w option is specified more than once, ps will use as many columns as necessary without regard for your window size."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100507101759.GA58651>