|
#1
|
|||
|
|||
|
I am very new to linux, I am trying to write some monitoring scripts and email results.
So far I have this script written: #!/bin/bash df -h > /tmp/mail_report.log free -m >> /tmp/mail_report.log df -i >> /tmp/mail_report.log mail -s “disk and RAM report” bernie@makoweb.com < /tmp/mail_report.log My 2 questions are.. #1 - where would I put this script? #2 - how would I schedule a cron job to run the script daily? Thanks for any help provided!
__________________
Bernie Clark MAKO Web Sales LLC Sarasota Florida’s Only Certified Paypal Developer! Sarasota: 941-870-2271 Toll Free: 877-625-6932 http://www.makoweb.com |
|
#2
|
||||
|
||||
|
Quote:
PHP Code:
in any place one example will be /opt #2 - how would I schedule a cron job to run the script daily? crontab -e # to edit insert a new line: 0 0 * * * /opt/file_to run and save. To see what is running: tail -f /var/log/cron or copy file into those directories: /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly Read more here: http://www.centos.org/docs/5/html/5....nfiguring.html Regards, George B.
__________________
Beneficium accipere, libertatem est vendere Last edited by freeman; 12-22-2011 at 12:02 PM. |
|
#3
|
|||
|
|||
|
Thanks George, i checked out your website and will contacting for some work I want done.
Bernie
__________________
Bernie Clark MAKO Web Sales LLC Sarasota Florida’s Only Certified Paypal Developer! Sarasota: 941-870-2271 Toll Free: 877-625-6932 http://www.makoweb.com |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell access | jwhite | Shared Hosting Support | 2 | 01-14-2009 02:43 PM |
| Shell access | rfay | Suggestions | 7 | 08-18-2004 02:36 PM |
All times are GMT -5. The time now is 04:07 AM.










