I know this is an old thread, but here it is. Slackware's crontab -e follows wherever vi [/usr/bin/vi] points. This is usually -> elvis. You can change the symlink to point to vim (like I did), but you have to set the VISUAL or EDITOR environment variables. These are not set by the default /etc/profile unless the shell happens to be ksh (has anyone used ksh since '94?).
If you run crontab -e on your Slackware box, and you see colors, e.g. syntax highlighting, then you're most likely using vi(m) which doesn't edit the file in place. try this instead: (note: to make the change automatic, put this line in /etc/profile)
export VISUAL=`which elvis`
You can verify that the new environment variable has been set by running
which should return:
elvis is a clone of the ex/vi text editor - feel free to check out the man page; it works just like vi.
After all this, run crontab -e again, save it, and reopen it to find that your crontab has truly been installed.
Now you can have vi point to something useful
:~# ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 12 2010-02-16 12:57 /usr/bin/vi -> /usr/bin/vim*
and run crontab -e
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
# test crontab entry after point vi -> vim
I found a nice writeup on cron and crontab here http://www.pantz.org/software/cron/croninfo.html