I have following questions on cron.
What is the preferred way for automating cron jobs? Using a) crontab command-line options (eg.
crontab -e
) or b) editing/etc/crontab
. What is the difference between the two? It's not exactly clear to me.Is crontab user specific? If I am logged in as a a user say "anup", and add jobs using
crontab -e
, will the job be user-specific? However, in some of the cron examples I checked online, username is provided as a field between the time string and the command to be executed.Can the 'Mail to user" option be controlled for each job? As in, for job 1:
MailTO: root
for job 2:MailTO: anup
.