Script automatisation entrées clavier automated input macro

Voir :http://www.thegeekstuff.com/2010/10/expect-examples/

#! /usr/bin/expect set timeout 10 spawn cadaver -p 192.168.56.1:3128 https://www.acme.fr/ expect "Do you wish to accept the certificate? (y/n)" send "y\n" interact