SCIENTIFIC-LINUX-USERS Archives

March 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Fri, 7 Mar 2014 13:15:11 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
On 03/07/2014 01:12 PM, ToddAndMargo wrote:
> Hi All,
>
> In SL6.5 bash script, is "while" not supported/
>
> Cancel="no" while [ "$Cancel" != "Cancel" ]
>     do
>        RunTunnel
>     done
>
> Gives me "while: command not found".
>
> Is there a better way to do "loop until"?
>
> Many thanks,
> -T
>
>


Never mind.  Missed a command separator  ";".

     Cancel="no"; while [ "$Cancel" != "Cancel" ]

-T
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2