AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080424160117.48872c1c@ripper>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<warren.gale@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E099E0E77@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 24 Apr 2008 16:01:22 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: stdout redirect ??
Message-ID: <20080424160122.26a4e4c6@ripper>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E099E0E77@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E099E0E77@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

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,
> 
>  
> 
> I have a question.
> 
> I'm trying to send a command via rcon to a processor, and I want the
> output from the command 
> 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.
> 
>  
> 
> Code is some thing like this:
> 
>  
> 
> char *puCmd[] = {"eeepoll off"};
> 
>  
> 
>  if (do_system("echo %s > /dev/rcon%d",puCmd[j],i) != 0) {
> 
>      error.
> 
>  }
> 
>  
> 
> This works but I want to change the command to something that
> displays a bunch of stuff.
> 
>   Like say  "eee", which displays all the AppIds and the packet counts
> for them all.
> 
>  
> 
> I want the output that goes to /dev/rcon[x] to be displayed on the
> current std.
> 
>  
> 
> Am I in left field??  Out of the park?? Nowhere to be found??
> 
>  
> 
>  
> 
> Help?
> 
> Thanks,
> 
> Warren  
> 
>  
> 
