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

Re: need help on shell programming



On Sun, Mar 01, 2009 at 01:32:32AM -0430, Olaf Reitmaier Veracierta wrote:
> Sorry mismatch "then" with "do"...
>
> while [ 1 -eq 1 ]; do

Useless use of test. Use 'true' or ':' instead.

You can save a few cycles (mostly of parsing, I guess :-) [1]

>    <PUT HERE YOUR COMMAND>
>    sleep 60
> done

[1] http://xkcd.com/541/

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: