[TriLUG] RV:
Joseph Tate
jtate at dragonstrider.com
Fri Jun 13 17:03:49 EDT 2003
Top is not a program that I'd run from cron. All of the information that
is given through the top command is available on the /proc file system.
Check that out to see if you can get the information you want directly
instead of a readout from top. If you insist on using cron, try setting
the TERM environment variable in your script. Set it to something like
vt100 or xterm or linux or whatever you'd like.
Joseph
MONTIEL AGUIRRE DANIELA wrote:
> Sorry, could you help me to know how can I run command top from cron?
>
> I run my program in line and I don’t have problems , I have my file:
>
> 14 2 * * * /users/montiel/prueba
>
> prueba meaning test
>
> cat > prueba
>
> /usr/bin/ top –d1 –s1 > /users/montiel/out_prueba
>
> when I run this by cron the result by mail is:
>
> ===========================
>
> Subject: cron
>
> Sorry, I need to know a more specific terminal type than 'unknown'.
>
> ===========================
>
> how can I redirect a terminal with cron???
>
> In sun is o.k.
>
> In hp is not o.k.
>
> Thanks Daniela.
>
More information about the TriLUG
mailing list