forked from DGNum/liminix
11 lines
No EOL
210 B
Text
11 lines
No EOL
210 B
Text
set timeout 10
|
|
|
|
spawn socat unix-connect:vm/console -
|
|
send "\r\n"
|
|
expect "login:" { send "root\r\n" }
|
|
expect "#"
|
|
send "echo HELLO WORLD > /hello\r\n"
|
|
expect "#"
|
|
send "cat /hello\r\n"
|
|
expect 'HELLO WORLD'
|
|
close |