Im trying to make a cron job for the first time. Im using gentoo with vixie cron. I start the cron deamon fine.
I want to send an email every half hour. From what ive read I put the script into the /etc/cron.d direcotry. The script has been tested and is working.
the script is
test.sh
*/30 * * * * root /root/scripts/email.sh
and email.sh has
#!/bin/bash
email -q -s "test subject"
myemail@email.com < testlog.txt
After this did not work I read some more and did
crontab -e
*/30 * * * * root /root/scripts/email.sh