Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 May 2010 14:20:16 +0200
From:      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:  <4BE40580.80306@cyanide-studio.com>
In-Reply-To: <26a016017cc9651627e1f3572b1376bf.squirrel@smtp.pknet.net>
References:  <4BE3E2FF.5000803@cyanide-studio.com> <26a016017cc9651627e1f3572b1376bf.squirrel@smtp.pknet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>> 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
>>
>>
>>      
> 'w' or 'ww' options to ps;
>
> ps auxww ->  Displays the full command, wraps if the console is too short.
>
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>    

-- 
Bastien Semene
Administrateur Réseau&  Système

Cyanide Studio - FRANCE




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