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

Re: need help on shell programming



On Thu, Feb 26, 2009 at 11:01:37PM +0100, Sjors Gielen wrote:
> Kumar Appaiah schreef:
>> On Thu, Feb 26, 2009 at 3:54 PM, Long Wind wrote:
>>> I want a script.
>>> The script run a command, wait one minute,
>>> then run the command again, wait one minute again
>>> ... again and again ...
>>
>>  while [[ 1 < 2 ]]; do echo Hello; sleep 60;done
>
> [[ 1 < 2 ]] ? My suggestion:
>
> while :; do
> 	echo Hello;
> 	sleep 60;

why the ; at the of the echo and sleep

> done
>
>> Replace "echo Hello" with your command.
>>
>> HTH.
>>
>> Kumar
>
> Sjors
>
>
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a 
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

-- 
Replace with same type.

Attachment: signature.asc
Description: Digital signature


Reply to: