Shell scipt..invoking command and exiting at fixed intervals
raju
raju_ak at hotmail.com
Sun Jul 20 13:10:17 UTC 2008
HI,
i already have a simple shell script which invokes ant command and sleeps.I
was keen to know how to exit the command after hour and re invoke the
command.Maybe i need to use labelled loops for example??
Thanks
raj
Caleb Eggensperger wrote:
>
> 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.
>
> On Wed, Jul 16, 2008 at 3:14 AM, raju <raju_ak at hotmail.com> wrote:
>
>>
>> Hi,
>>
>>
>> I need to write a shell script.
>> Based on command line param to script say demode=yes
>> Need to run an ant command for an hour(configurable)
>> Then exit
>> Again run the ant command
>>
>> all this needs to be in a loop.
>>
>> Any one written a similar one or any links which could provide helpful
>> examples
>>
>> Thanks
>> Raj
>> --
>> View this message in context:
>> http://www.nabble.com/Shell-scipt..invoking-command-and-exiting-at-fixed-intervals-tp18484376p18484376.html
>> Sent from the ubuntu-users mailing list archive at Nabble.com.
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
>
>
> --
> Caleb Eggensperger
> http://calebegg.com/
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
--
View this message in context: http://www.nabble.com/Shell-scipt..invoking-command-and-exiting-at-fixed-intervals-tp18484376p18554292.html
Sent from the ubuntu-users mailing list archive at Nabble.com.
More information about the ubuntu-users
mailing list