[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Remote Shell Question
- Subject: [ale] Remote Shell Question
- From: jlightner at water.com (Jeff Lightner)
- Date: Wed, 3 Jan 2007 09:42:34 -0500
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
To: ale at ale.org
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
http://www.ale.org/mailman/listinfo/ale
-------------- next part --------------
An HTML attachment was scrubbed...