[ale] Remote Shell Question

Vikram Nanda vikramnanda at exsculpo.com
Wed Jan 3 12:02:22 EST 2007


I can access the boxes A and B through telnet. I can use rsh/ rexec on
bot the boxes.

I can get in A through ssh. SSH is disabled in B.

I dont have the contents of thescript with me right now.

The script has got a few for loops and a few mathematical
calculations... file listings etc

Jeff Lightner wrote:
>
> It would be helpful if you would tell us:
>
> 1)       Exactly how you DO access the box.
>
> 2)       Post the contents of the script
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* ale-bounces at ale.org [mailto:ale-bounces at ale.org] *On Behalf Of
> *Vikram Nanda
> *Sent:* Wednesday, January 03, 2007 8:49 AM
> *To:* Atlanta Linux Enthusiasts
> *Subject:* Re: [ale] Remote Shell Question
>
>  
>
> Jeremy,
>
> SSH is not an option - I can;t SSH to the box B.
>
> Thanks,
> Vikram
>
> Jeremy T. Bouse wrote:
>
> Vikram Nanda wrote:
>   
>> Hi,
>>  
>> I have a shell script on Unix box A. I want to execute it on another 
>> Unix box B from the box A. The restriction is that the script file
>> cannot physically land (or copied) on B. Is there any way this could
>> be accomplished through rsh/rexec ?
>>  
>> Thanks,
>> Vikram
>>     
>     Well provided you have SSH you could always do the following...
>  
>        user at boxA$ ssh -T user at boxB < /path/to/script/on/boxA
>  
>     This should pass the contents of the script that is redirected over
> the SSH channel and execute it within a tty. Alternatively you could
> redirect the output back to a file on box like such:
>  
>        user at boxA$ ssh -T user at boxB < /path/to/script > /path/to/file
>  
>     Regards,
>     Jeremy
> _______________________________________________
> Ale mailing list
> Ale at ale.org <mailto:Ale at ale.org>
> http://www.ale.org/mailman/listinfo/ale
>  
>  
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list