On Tue, 25 Mar 2003, Jeremy Warren wrote:

> I have a script which outputs top data periodically to a file using stdout
>
> top -c -C -b -d1 -n1 >> /kb/data/top/topout.$sname.txt
>
> When I run this by hand, the data in the topout file has the complete path
> to the running processes.
> When I run it via cron, everything gets truncated at 80 chars.  I know this
> is probably some session environment variable but I can't seem to come up
> with the right answer in my googling...

Probably, like other software, if figures on a card-width screen if it
doesn't get better information. Try setting "COLUMNS=120" in its
environment.

You might also mention the problem to the author.


--


Cheers
John.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb

Reply via email to