Run a script automatically in every 2 sec.

ShibuThomas shibuthomas at tataelxsi.co.in
Wed Jun 29 07:08:30 UTC 2011


Hi ricks,

I wrote a one shell script which contains code for synchronize files 
between two machines.I want to execute this script every 2 second.How 
can I do this?.When I gone through net found that usually cron job is 
used for doing same.But the minimum time frame in cron is 1 minitues.One 
method is to keep a loop inside my script and execute it.But I would 
like to know is there any other way to do the same.
So how can execute my script every 2 second.Please provide some example 
code.

Regards,
ShibuThomas






More information about the Redhat-install-list mailing list