[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need help on shell programming



On Thu, Feb 26, 2009 at 4:01 PM, Tzafrir Cohen wrote:
>>  while [[ 1 < 2 ]]; do echo Hello; sleep 60;done
>
> Not only bashism, but also not as readable.
>
>>
>> Replace "echo Hello" with your command.
>
>
> #!/bin/sh
> while true
> do
>  your command
>  sleep 60
> done

Thanks for the improved one. The above snippet is from code I had
written four years ago, when I was learning bash scripting... I've
gone and changed it in my script too. :-)

Kumar
-- 
Kumar


Reply to: