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

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
> 
