X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C8AFD6.88A4E7E0@onstor-exch02.onstor.net>; Tue, 6 May 2008 17:08:53 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: stdio redirection questions
Date: Tue, 6 May 2008 17:08:52 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E09CA5FB2@onstor-exch02.onstor.net>
In-Reply-To: <20080506165216.6c609327@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: stdio redirection questions
Thread-Index: Aciv1DbIj3O9V12XR2qQJ3stOgwsIQAAiz+g
References: <BB375AF679D4A34E9CA8DFA650E2B04E09CA5F9C@onstor-exch02.onstor.net> <20080506165216.6c609327@ripper.onstor.net>
From: "Warren Gale" <warren.gale@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

Ok, .. Don't know what the AFAIK means, but what if I wanted
to do this from c code? ?? :)

-----Original Message-----
From: Andy Sharp=20
Sent: Tuesday, May 06, 2008 4:52 PM
To: Warren Gale
Subject: Re: stdio redirection questions

Why don't you just use the rcon command?  That's what it's for, AFAIK.

On Tue, 6 May 2008 16:42:14 -0700 "Warren Gale"
<warren.gale@onstor.com> wrote:

> Andy,
>=20
>   It's been a while but I'm still looking at how to get the output
> from an rcon session=20
> on the current shell command.
>=20
> Ok maybe I don't know how to explain it very well.
>=20
> =20
>=20
> I've logged into my cougar.
>=20
>   Root
>=20
>   Password...  (Yea its back-door)
>=20
> At the Linux prompt:
>=20
>    I do the following
>    "diag-cg-rack:~# echo "env set autolinkenable 5" > /dev/rcon7"
>=20
> =20
>=20
> I can verify that this command worked by doing the "env view" in
> another rcon session.
>=20
> IE=20
>=20
>   I have a xterm that executes a telent to  <cougar IP> /dev/rcon6
>=20
>                             <cougar IP> <port> =20
>=20
>            ie    telnet    10.1.1.109 61236
>=20
> =20
>=20
> Here is the output:
>=20
> FP2:3 > env view
>=20
> =20
>=20
> Current Environment Settings:
>=20
>         autoload         =3D on         ( off on )
>=20
>         autoreboot       =3D off        ( off on )
>=20
>         upgrade_prom     =3D yes        ( no yes )
>=20
>         env_reset        =3D no         ( no yes )
>=20
>         autolinkenable   =3D 5          (SP.0 enabled, SP.1 disabled,
> SP.2 enabled, SP.3 disabled)
>=20
>         hw_qt            =3D off        ( off on )
>=20
>         hw_ft            =3D off        ( off on )
>=20
>         hw_diag          =3D off        ( off on )
>=20
> =20
>=20
> FP2:3 >
>=20
> =20
>=20
> What I like to do is issue the command from Linux prompt,
>=20
>   "diag-cg-rack:~# echo "env view" > /dev/rcon7" =20
>=20
>  And see the output above displayed here, before the next Linux
> prompt.
>=20
> =20
>=20
> Is this possible? Am I in left field?
>=20
> =20
>=20
> Thanks,
>=20
> Warren
>=20
