[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] telnet automatique
Si tu veux automatiser une commande telnet dans un script, jette un coup
d'oeil sur expect. Expect permet de faire des scripts avec des progrmammes
interactifs.
Patrick
On Thu, 9 Sep 1999, Thierry Andry wrote:
>
>
> Salut,
>
> j'aimerais pouvoir exécuter une commande à distance sur une machine
> possédant un serveur telnet.
> J'ai essayé d'utiliser le pipe mais sans succès:
> cat <commandes> | telnet bidibulle
> avec commandes qui contient:
> mon_login
> mon_mot_de_passe
> ma_commande_intéressante
>
> réponse retournée: Close by foreign host.
>
> Je n'ai que ce moyen d'accès à la machine (pas de RSH ou autre)
>
> Y a-t-il moyen ?
>
> Merci (de me répondre également à mon e-mail paske je suis inscrit à
> cette mailing mais pas avec cette adresse)
>
>
> Thierry
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
>
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.