I am using Ubuntu linux desktop, and I am trying to schedule a sheel script to run every 10minutes.
These are the steps I have taken:
crontab -e
added and saved this line to the file
# m h dom mon dow command
*/1 * * * * /home/enzo/Desktop/dlrecentuse
restarted cron:
sudo /etc/init.d/cron restart
nothing is happening, any ideas?
Ikon
2
*/1 * * * * /home/enzo/Desktop/dlrecentuse
That doesnt make sense.
* * * * * /home/enzo/Desktop/dlrecentuse
That runs every minute.
*/10 * * * * /home/enzo/Desktop/dlrecentuse
Runs every 10 minutes
You dont have to restart cron after changin.
Look in cron log in /var/log to see if there are any errors.
o ok thanks for the help.. ive got the cron task running now, but just need to sort out my script.
i thought */1 would run every other minute!
Ikon
4
*/2 would be every 2 mins, */5 every 5 mins...etc...
LisaS
6
I have a related question if you know -
if */10 is every 10 - is it on 00, 10, 20 etc?
what if you want to run every 10 mins starting on 02 - 02, 12, 22, etc?