liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

script.expect (173B)


      1 set timeout 10
      2 
      3 spawn socat unix-connect:vm/console -
      4 send "\r\n"
      5 expect "#"
      6 send "echo HELLO WORLD > /hello\r\n"
      7 expect "#"
      8 send "cat /hello\r\n"
      9 expect 'HELLO WORLD'
     10 close