Number of columns when redirecting ps command stdout to a file

Bastien Semene bsemene at cyanide-studio.com
Fri May 7 10:10:47 UTC 2010


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, 
there's a maximum of 80 char columns. Where is set this limitation ? How 
can I remove it ?

Thanks for your help, and sorry if it is a newbie question but I really 
can't figure out what is limiting the output.

-- 
Bastien Semene




More information about the freebsd-questions mailing list