Aide Linux - Liste de diffusion Ze-Linux hebergée par
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FC2] expect
Bonjour,
j'essaie d'executer le script expect ci dessous :
#!/usr/bin/expect
spawn telnet 192.168.1.1
expect "login: "
send "admin\r"
expect "Password: "
send "yourpassword\r"
expect "# "
send "mycommand\r"
Voici ce que j'ai en retour
./firewall: line 1: spawn: command not found
": no such file or directory
./firewall: line 3: send: command not found
": no such file or directory:
./firewall: line 5: send: command not found
": no such file or directory
./firewall: line 7: send: command not found
": no such file or directory
./firewall: line 9: send: command not found
": no such file or directory
./firewall: line 11: send: command not found
": no such file or directory
./firewall: line 13: send: command not found
": no such file or directory
./firewall: line 15: send: command not found
": no such file or directory
Ou puis je trouver les commandes spawn send et toutes les autres utilisé par
l'interpreteur expect.
J'ai installé le package expect et expectk
Merci d'avance
----------------------------------
Informations, désabonnement, règles, obligations sur la liste Aide-Linux :
http://lists.ze-linux.org/howto_ml.html
Liste Herbergee par Over-Link [http://www.over-link.net]
----------------------------------
Annonces immobilieres, auto, moto ... http://www.uneannonce.fr
Aide Linux - Liste de diffusion Ze-Linux hebergée par