X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C7DFA5.909CF47C@onstor-exch02.onstor.net>; Wed, 15 Aug 2007 17:34:19 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: power cycle script
Date: Wed, 15 Aug 2007 17:34:19 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02215986@onstor-exch02.onstor.net>
In-Reply-To: <20070815182848.38bd7ac0@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: power cycle script
Thread-Index: AcffpMtaOdnvN0YlSo2LBNzG+eiT1gAABLpw
From: "Larry Scheer" <larry.scheer@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

Yes, I changed the variables to match my needs and I used dos2unix to
convert the script because it came through outlook and outlook converts
files to dos format.

The file looks okay to me in vi....

I don't know expect syntax so I don't know if it should be  if !
$SENTRY_IP or if ! {$SENTRY_IP} or if ![$SENTRY_IP] I was hoping you
would know if the statement it is grousing about was correct.

-----Original Message-----
From: Andy Sharp=20
Sent: Wednesday, August 15, 2007 6:29 PM
To: Larry Scheer
Subject: Re: power cycle script

Make sure it didn't get mangled when you saved it.  Also, what is
SENTRY_IP being set to?  You have to edit the various variables at the
beginning to the right values for your setup.

On Wed, 15 Aug 2007 18:22:21 -0700 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> Script doesn't work...
> syntax error in expression "!": premature end of expression
>     while executing
> "if ! $SENTRY_IP {
>            puts "BCCONF not set"
>            exit 1
>    }"
>     invoked from within
> "if ![info exists env(BCCONF)] {
>         if ! $SENTRY_IP {
>            puts "BCCONF not set"
>            exit 1
>    }
> } else {=20
>   source $env(BCCONF)
> }
>=20
> -----Original Message-----
> From: Andy Sharp=20
> Sent: Wednesday, August 15, 2007 5:10 PM
> To: Larry Scheer
> Subject: power cycle script
>=20
> =20
