How do I get a script to run every ten minutes?

Smoot Carl-Mitchell smoot at tic.com
Wed Feb 11 19:05:21 UTC 2009


On Wed, 2009-02-11 at 10:55 -0800, Knute Johnson wrote:
> I need to run a script every ten minutes on the 0 minute.  Is there a 
> simple way to do this?

Use cron.  You can create a user specifc crontab file with
crontab -e

A simple crontab line which will do what you want is:

0,10,20,30,40,50 * * * * some_command_with_arguments

or

*/10 * * * * some_command_with_arguments
-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list