summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xups_ctl.sh3
1 files changed, 3 insertions, 0 deletions
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 \"*)> \"