Number of columns when redirecting ps command stdout to a file

2010-05-07 Thread Bastien Semene
Hi list, 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,

Re: Number of columns when redirecting ps command stdout to a file

2010-05-07 Thread Peter
Hi list, 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,

Re: Number of columns when redirecting ps command stdout to a file

2010-05-07 Thread andrew clarke
On Fri 2010-05-07 11:53:03 UTC+0200, Bastien Semene (bsem...@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

Re: Number of columns when redirecting ps command stdout to a file

2010-05-07 Thread Bastien Semene
Thanks, I didn't think it is a program limitation, probably because of old terminals limitations. Le 07/05/2010 12:16, Peter a écrit : Hi list, 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