<div dir="ltr">A better way to have a shell script invoked at timed intervals is to use cron (try "man cron"). If it absolutely must be done the way you say, you can use the "sleep" command in a "while true" loop.<br>
<br><div class="gmail_quote">On Wed, Jul 16, 2008 at 3:14 AM, raju <<a href="mailto:raju_ak@hotmail.com">raju_ak@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
<br>
I need to write a shell script.<br>
Based on command line param to script say demode=yes<br>
Need to run an ant command for an hour(configurable)<br>
Then exit<br>
Again run the ant command<br>
<br>
all this needs to be in a loop.<br>
<br>
Any one written a similar one or any links which could provide helpful<br>
examples<br>
<br>
Thanks<br>
Raj<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Shell-scipt..invoking-command-and-exiting-at-fixed-intervals-tp18484376p18484376.html" target="_blank">http://www.nabble.com/Shell-scipt..invoking-command-and-exiting-at-fixed-intervals-tp18484376p18484376.html</a><br>

Sent from the ubuntu-users mailing list archive at Nabble.com.<br>
<font color="#888888"><br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Caleb Eggensperger<br><a href="http://calebegg.com/">http://calebegg.com/</a>
</div>