AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080506174644.7f22cec5@ripper.onstor.net>
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	BB375AF679D4A34E9CA8DFA650E2B04E09CA5FB2@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 6 May 2008 17:46:49 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: stdio redirection questions
Message-ID: <20080506174649.32fa347d@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E09CA5FB2@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E09CA5F9C@onstor-exch02.onstor.net>
	<20080506165216.6c609327@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E09CA5FB2@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

On Tue, 6 May 2008 17:08:52 -0700 "Warren Gale"
<warren.gale@onstor.com> wrote:

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

Look AFAIK on the werld-wade-wayb

I'd need an example of the C code you're trying to write.  Do we allow
you to write C code?

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