Scripting
Linux gurus I am asking for your appreciated assistance. I am still new to linux. I need a script which sends an email after every 15 miniutes to a certain address. the email should have the output of the top command.
I think also there should be a crontab to execute the script after every 15 minutes. I woould appreciate whatever form of help/advice you can give me. Thanxs in advance |
You can try sendmail to send a message. A script might be simply something like this:
Code:
#!/bin/bash Code:
chmod +x /path/to/script.sh Code:
crontab -e Code:
0,15,30,45 * * * * /path/to/script.sh Code:
man top |
Thank you very much for your help! With that kind of help it shows there are people out there who are not selfish with their knowledge.
|
Code:
echo "test" |mail -s test you@domain.com |
Quote:
If you're stuck, we are always happy to assist. But you do need to write your own scripts. |
Erroneously sent as reported post:
Quote:
|
All times are GMT -5. The time now is 12:36 AM. |