system
March 24, 2007, 12:29pm
1
Hello,
I want that the crontab loads “/root/mail” + send me an email.
The mail file:
MAILTO: my-address
./r http
./r mail
./r interworx
./r mysql
./r dns
Its a script what restarts services
The cmail file (crontab):
0 6 * * * /root/mail
Whats wrong with this, it doesn’t load and doesn’t mail me? When i run manually “/root/mail” it will load + mail me
Thank you
system
March 26, 2007, 5:05am
2
You didn’t define a user — or did you do that with crontab -e
? Regardless — the safest way to do cron is to ignore all that crap, drop a file in /etc/cron.d/ and put the user in … eg
0 6 * * * root /root/mail
system
March 26, 2007, 7:57am
3
When i type “crontab cmail” and then i type “crontab -u root -l” then i see the crontab cmail. But he doesn’t load it.