summaryrefslogtreecommitdiff
path: root/tests/log/lastlog/03_lastlog_format/login.exp
blob: c8866d925a05033ce2ce8ae33b0a3b941bb0de93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/expect

set timeout 2
expect_after default {puts "\nFAIL"; exit 1}

spawn /bin/bash
expect "# "

send "login -f foo\r"
expect "$ "

send "exit\r"
exit 0