Re: scripting an ssh session

2003-02-21 Thread Ivan Roseland
Dave Vehrs wrote: Use the Expect scripting langauge. It was designed for scripting interactive processes. Learn more at: http://expect.nist.gov/ Dave V. you could do it with NET::SSH::PERL ( Perl Modules) here is that part that matters. my $ssh = Net::SSH::Perl->new($host, options => [ "u

Re: scripting an ssh session

2003-02-21 Thread Dave Vehrs
Use the Expect scripting langauge. It was designed for scripting interactive processes. Learn more at: http://expect.nist.gov/ Dave V. On Tue, 2003-02-11 at 17:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as muc

Re: scripting an ssh session

2003-02-15 Thread Rodolfo J. Paiz
On Tue, 2003-02-11 at 18:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as much as possible. > > We have password-less ssh working (thanks to the group for that!). So > using a shell script we can login in to a re

RE: scripting an ssh session

2003-02-12 Thread David Simmons
:09 PM To: [EMAIL PROTECTED] Subject: Re: scripting an ssh session On Tue, 2003-02-11 at 17:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as much as possible. > > We have password-less ssh working (t

Re: scripting an ssh session

2003-02-12 Thread Bill Anderson
On Tue, 2003-02-11 at 17:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as much as possible. > > We have password-less ssh working (thanks to the group for that!). So > using a shell script we can login in to a re

Re: scripting an ssh session

2003-02-12 Thread Kevin
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 16:28 Subject: scripting an ssh session We have a couple of servers that we want to push out periodic updates to. We want to automate this as much as possible. We have password-less ssh working (thanks to t

Re: scripting an ssh session

2003-02-12 Thread David Busby
Try using rsync, it might do what you need, will work over SSH or RSH. /B - Original Message - From: "David Simmons" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 16:28 Subject: scripting an ssh session > We have a couple of ser

Re: scripting an ssh session

2003-02-11 Thread Todd A. Jacobs
On Tue, 11 Feb 2003, David Simmons wrote: > Is it possible to continue feeding commands from the ssh shell script I > wrote to the remote machine? For example, if my script is something > like: Interactive processes can be scripted using expect. But why not just place your remote commands in a

Re: scripting an ssh session

2003-02-11 Thread Dave Young
or, you could just: ssh [EMAIL PROTECTED] cd /usr/local; echo "some new command" >> therefile ;-) On Tuesday 11 February 2003 04:53 pm, Raymundo M. Vega wrote: > yes, i think you should do it like: -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https:

Re: scripting an ssh session

2003-02-11 Thread Raymundo M. Vega
yes, i think you should do it like: ssh [EMAIL PROTECTED] << EOF cd /usr/local echo "some new command" >> therefile logout exit 1 EOF hope it helps raymundo David Simmons wrote: We have a couple of servers that we want to push out periodic updates to. We want to automate this as much as possi

scripting an ssh session

2003-02-11 Thread David Simmons
We have a couple of servers that we want to push out periodic updates to. We want to automate this as much as possible. We have password-less ssh working (thanks to the group for that!). So using a shell script we can login in to a remote machine. But that is all we can do. Once we login we