X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C8A660.095B5820@onstor-exch02.onstor.net>; Thu, 24 Apr 2008 16:07:58 -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: stdout redirect ??
Date: Thu, 24 Apr 2008 16:07:57 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E099E0EB7@onstor-exch02.onstor.net>
In-Reply-To: <20080424160122.26a4e4c6@ripper>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: stdout redirect ??
Thread-Index: AcimXx2f0ce21/BTQq6UExiLP6DnFQAAMylw
References: <BB375AF679D4A34E9CA8DFA650E2B04E099E0E77@onstor-exch02.onstor.net> <20080424160122.26a4e4c6@ripper>
From: "Warren Gale" <warren.gale@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

I'm taking a vacation day tomorrow, but your welcome to come here if you
want. :)


-----Original Message-----
From: Andy Sharp=20
Sent: Thursday, April 24, 2008 4:01 PM
To: Warren Gale
Subject: Re: stdout redirect ??

I really don't know what you're trying to say, but I'm guessing it
should be fairly simple to do.

Perhaps I should come up there tomorrow since I'm not sure I can stand
to come to work here again this week.

On Thu, 24 Apr 2008 15:15:23 -0700 "Warren Gale"
<warren.gale@onstor.com> wrote:

> Andy,
>=20
> =20
>=20
> I have a question.
>=20
> I'm trying to send a command via rcon to a processor, and I want the
> output from the command=20
> to come back to me.  I think redirecting stdout and stderr might do
> it, but I don't have a clue
> on how to do it.
>=20
> =20
>=20
> Code is some thing like this:
>=20
> =20
>=20
> char *puCmd[] =3D {"eeepoll off"};
>=20
> =20
>=20
>  if (do_system("echo %s > /dev/rcon%d",puCmd[j],i) !=3D 0) {
>=20
>      error.
>=20
>  }
>=20
> =20
>=20
> This works but I want to change the command to something that
> displays a bunch of stuff.
>=20
>   Like say  "eee", which displays all the AppIds and the packet counts
> for them all.
>=20
> =20
>=20
> I want the output that goes to /dev/rcon[x] to be displayed on the
> current std.
>=20
> =20
>=20
> Am I in left field??  Out of the park?? Nowhere to be found??
>=20
> =20
>=20
> =20
>=20
> Help?
>=20
> Thanks,
>=20
> Warren =20
>=20
> =20
>=20
