From 36647a0992e66718aacfde6f04df1a13cfaaa65b Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 9 Feb 2023 08:17:06 -0600 Subject: update ups_ctl to not use unnecessary expects --- ups_ctl.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ups_ctl.sh b/ups_ctl.sh index 2e33110..8495a59 100755 --- a/ups_ctl.sh +++ b/ups_ctl.sh @@ -2,10 +2,7 @@ /usr/bin/expect -c "spawn ssh localadmin@$1 expect \"password:\" send \"$3\r\" -expect \"Last login:\" -expect \"*from\" -expect \"*wait...\" -expect \"*> \" +expect -timeout 60 \"localadmin>\" send \"device\r\" expect \"*)> \" send \"load 1\r\" -- cgit v1.2.3