I made a cron job to execute a script every minute.

Code: 
* * * * * "/home/user/crontest.sh"
The script:
Code: 
date >> "/home/user/test.txt"
sleep 10m
As you can see, the script output the date and time to the text file "test.txt" and wait for 10 Minutes.

Here is the output:
Code: 
Thu Sep 16 19:06:01  2010
Thu Sep 16 19:07:01  2010
Thu Sep 16 19:08:01  2010
Thu Sep 16 19:09:01  2010
However, I want the execution in the script to be complete before re-executing the script again.

that's is the output should be like this:
Code: 
Thu Sep 16 19:06:01 2010
Thu Sep 16 19:00:01 2010
Thu Sep 16 19:10:01 2010
Thu Sep 16 19:20:01 2010
Any one knows how this can be done ??


(I've made this just as example but I'll use the script for some other purposes)
Snell Reviewed by Snell on . [linux] Cronjobs ? I made a cron job to execute a script every minute. * * * * * "/home/user/crontest.sh" The script: date >> "/home/user/test.txt" sleep 10m As you can see, the script output the date and time to the text file "test.txt" and wait for 10 Minutes. Rating: 5