Run a script automatically in every 2 sec.

ShibuThomas <[email protected]> Wed, 29 Jun 2011 12:38:30 +0530
Newsgroups gmane.linux.redhat.install
Message-ID <[email protected]>
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



_______________________________________________
Redhat-install-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
[email protected]
Subject: unsubscribe