mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-05 08:37:49 -04:00
examle.lsp: when password is invalid, send Ctrl-C and wait process terminating
This commit is contained in:
@@ -30,6 +30,9 @@
|
|||||||
|
|
||||||
(expect*
|
(expect*
|
||||||
("Permission denied"
|
("Permission denied"
|
||||||
|
(expect "password:")
|
||||||
|
(send #\U3)
|
||||||
|
(wait sshpid)
|
||||||
(return-from main nil)
|
(return-from main nil)
|
||||||
)
|
)
|
||||||
("$ "))
|
("$ "))
|
||||||
|
|||||||
Reference in New Issue
Block a user