On Mon, 12 Jun 2000,  Steve wrote about,  Top --> Signature:
> Hello,
> 
> I've seen signatures with "top" output in them. I understand that this
> is done by running a cronjob and a bash-script. Could someone direct me
> to a resource that's shows one how to do this?

I know of no source for what you ask, however, if i understand you correctly
you want the output of top sent to a file. That can be done as follows.

top -n1 -b > file.txt

If you wish to redirect the file file.txt in a mail then.

top -n1 -b > file.txt && cat file.txt | mail user@localhost

A crontab entry to run once ever 2 hours.

0 */2 * * * top -n1 -b > /tmp/file.txt && cat /tmp/file.txt | mail user@localhost

> 
> Thanks
> Steve
> 

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to