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

Re: need help on shell programming



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;
done

Replace "echo Hello" with your command.

HTH.

Kumar

Sjors


Reply to: