LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Steve Sloan <steve@lansol.com.au>
To : John Edwards <isplist@pinnacle.net.au>
Linux-SA <LinuxSA@linuxsa.org.au>
Date: Sun, 1 Apr 2001 12:12:34 +0930
Re: Bash script
Thanks John,
That is exactly what I was looking for and autoexpect look like a great
little tool as well.
Steve
----- Original Message -----
From: John Edwards <isplist@pinnacle.net.au>
To: Steve Sloan <steve@lansol.com.au>; Linux-SA <LinuxSA@linuxsa.org.au>
Sent: Sunday, 1 April 2001 12:04
Subject: Re: Bash script
>
> >I have a need to write a small script that will log onto another server,
do
> >a small task and log off again.
> >I want to use SSH to logon which is no problem but is there a command to
> >stop the script and wait for a reply from the host and then enter the
> >passwd.
>
> You can use an 'expect' script to do what you suggest, where you need to
> wait for a certain output before providing input. 'autoexpect' will write
> the script for you.
>
> Although if it's to ssh to another server, you might want to do it with
> identity/key files instead, so that it doesn't prompt for a password and
> behaves more like rsh.
>
> John Edwards
>
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page