For some reason, I cannot get a simple cron job working on my Mint 18 KDE system.
This is the job, it tells a script to run every minute. See the crontab line that I get when I type crontab -l
:
# m h dom mon dow command
1 * * * * sh /home/martien/crontest.sh
This is the script crontest.sh
:
#! /bin/bash
cd /home/martien/archives/
DIRECTORY='webcam-'`date +%y-%m-%d-%H-%s`
mkdir ~/archives/$DIRECTORY
These are the properties of the script
-rwxrwxr-x 1 martien martien 110 Apr 2 07:35 crontest.sh
The file in /var/spool/cron/crontabs/
confirms the existence of the cron job.
Cron runs:
root 953 1 0 06:50 ? 00:00:00 /usr/sbin/cron -f
The script runs when I enter this in the command line:
sh /home/martien/crontest.sh
I run Mint 18 (Ubuntu Xenial).