|
Home > Archive > Unix Programming > February 2004 > Re: Is it possible to signon to telnet using a script, so I do not have
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Is it possible to signon to telnet using a script, so I do not have
|
|
| Lorinczy Zsigmond / Domonyik Mariann 2004-02-17, 3:34 am |
| George Kooper wrote:
> Is it possible to signon to telnet using a script, so I do not have to
> enter userid and password
You mean you wanna run telnet in a script, but telnet forces using /dev/tty?
This is what program <i>expect</i> good for.
| |
| joe durusau 2004-02-18, 12:34 am |
|
Maurizio Loreti wrote:
> George Kooper <tentimes5@hotmail.com > writes:
>
>
> You don't want to do that.
>
> Consider using ssh with public key authentication, instead...
>
> --
> Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
> Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@cq.vasa.vg
I agree that it's usually if not always a bad idea, but yes, you can do it.
expect is a product that an do that. Of course, you would have to
install it and be prepared to live with the trouble that passwords in
scripts can cause. If it's your home system, go right ahead. If it's
somebody else's system, I wouldn't do that.
Speaking only for myself,
Joe Durusau
|
|
|
|
|