expect memo
いっつもわすれてます。
んで、めも
#!/usr/bin/expect set timeout 5 spawn ssh -l hirasawa 192.168.1.40 expect "hirasawa@192.168.x.xx's password:" send "yourpass\n" expect "Last login" send "ls -l\n" interact
いっつもわすれてます。
んで、めも
#!/usr/bin/expect set timeout 5 spawn ssh -l hirasawa 192.168.1.40 expect "hirasawa@192.168.x.xx's password:" send "yourpass\n" expect "Last login" send "ls -l\n" interact