Cron job
Hello forum,
I'm new to linux. I'm running redhat 7.1 and webmin. My question is concerning cron. I would like to setup a cron job in redhat 7.1 or webmin to email me results from a logfile. could someone point me in the right direction. Any help would be greatly appreciated. :study: |
what do you mean 'results fom a logfile'? You just mean to email you a log file every so often..?
Well, that's a cron thing, webmin is irrelevant. I think all you should need to do is to actually create a cron job file which simply 'cat's (or less or more or whatever) teh log file as and when you want it to. I *think* that simply catting it will email it to the postmaster defined in the /etc/crontab file as MAILTO= Putting the script file into one of the /etc/cron.xxxx directories (or creating your own new one) is the easiest way to get a cron job going |
All times are GMT -5. The time now is 09:16 PM. |