Both myself and a colleague have had no luck in trying to figure out how
to get cron up and running. I’d like to run a process at 1:00am every
day. Here’s what I’ve done so far:
-
Logged in as root.
-
Created a cron.allow file in /var/spool/cron and added the following
entries:
root
joeuser
-
Started cron (/usr/sbin/cron &)
-
Still logged in as root, created a crontab file (crontab -e) with the
following entry:
-
-
-
-
- (echo -n " "; date; echo) >> ~/test.txt
-
-
-
- Still logged in as root, created a crontab file for joeuser (crontab
-e -u joeuser) with the following entry:
-
-
-
-
- (echo -n " "; date; echo) >> ~/test.txt
-
-
-
-
Checked the home directories for root and joeuser, and the test.txt
entries are both there and are being updated every minute as expected. -
Logged in as joeuser and tried to edit the crontab file (crontab -e).
I get a warning saying that cron has not been started and a memory fault
causing a core dump.
Can anyone help? Thanks in advance.