examle.lsp: when password is invalid, send Ctrl-C and wait process terminating

This commit is contained in:
HAYAMA_Kaoru
2024-12-05 13:57:27 +09:00
parent 41dc2eb1fd
commit 11c7046c50
+3
View File
@@ -30,6 +30,9 @@
(expect* (expect*
("Permission denied" ("Permission denied"
(expect "password:")
(send #\U3)
(wait sshpid)
(return-from main nil) (return-from main nil)
) )
("$ ")) ("$ "))