8728bd87ed
Signed-off-by: Serge Hallyn <serge@hallyn.com>
14 lines
171 B
Plaintext
Executable File
14 lines
171 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
|
|
set timeout 2
|
|
expect_after default {puts stderr "\nFAIL"; exit 1}
|
|
|
|
spawn /bin/bash
|
|
expect "# "
|
|
|
|
send "login -f foo\r"
|
|
expect "$ "
|
|
|
|
send "exit\r"
|
|
exit 0
|