another stupid questions i'm sure, but i just checked my mail on root and wow, i had like a million messages from crontab due to vnstat....i THOUGHT i had followed the instructions by posting
into roots crontab but i did it using su
crontab -e
now i check the mail and see a TON of messages like this
root: not found
root: not found
root: not found
so i did a search and found out about /etc/crontab....
so...should i ONLY be using /etc/crontab..i'm totally confused now
is /etc/crontab a relic of days past or is the ability to do crontab -e as root messed up? or are they both correct and i'm getting the error due to something else?
Code:
*/5 * * * * root if [ -x /usr/local/bin/vnstat ] && [ `ls -l /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi
crontab -e
now i check the mail and see a TON of messages like this
root: not found
root: not found
root: not found
so i did a search and found out about /etc/crontab....
so...should i ONLY be using /etc/crontab..i'm totally confused now
is /etc/crontab a relic of days past or is the ability to do crontab -e as root messed up? or are they both correct and i'm getting the error due to something else?