>#!/usr/bin/expect
>spawn ssh name@host  # exemple !
>expect "passwd"
>send "xxxxxxx\r"    
># attention : �mulation de clavier
># donc on �mule un CR, pas un LF -> \r

Super! Merci! :-)

Nicolas


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[email protected]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à