autoconnect to telnet server.

Manuel Arostegui Ramirez manuel at todo-linux.com
Mon Jul 9 15:35:59 UTC 2007


On Monday 09 July 2007 17:31:00 Guillaume wrote:
> Hi,
> I would like to use the telnet client via with cron & script to
> execute special command on a telnet server.
> On telnet manual i saw the -l option used to specify the user. But i
> dont find any way to give the password (of course in clear text, i
> dont speak here about security).
> I try several commands like
> ] telnet -l $user host <passwdor
> ] echo password | telnet -l $user host
> ]cat passwordfile | telnet -l $user host
> None of this works. Does someone can help me ?
> Thanks.
>
> --
> Gui

What about using expect?

-- 
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.




More information about the fedora-list mailing list