From bd67e2661319955472319497e024663932e4a1db Mon Sep 17 00:00:00 2001 From: ZachIR Date: Tue, 10 Jan 2023 15:49:53 -0600 Subject: update ups_ctl to wait better --- ups_ctl.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ups_ctl.sh b/ups_ctl.sh index 9406fa4..2e33110 100755 --- a/ups_ctl.sh +++ b/ups_ctl.sh @@ -2,6 +2,9 @@ /usr/bin/expect -c "spawn ssh localadmin@$1 expect \"password:\" send \"$3\r\" +expect \"Last login:\" +expect \"*from\" +expect \"*wait...\" expect \"*> \" send \"device\r\" expect \"*)> \" -- cgit v1.2.3