summaryrefslogtreecommitdiff
path: root/ups_ctl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ups_ctl.sh')
-rwxr-xr-xups_ctl.sh5
1 files changed, 1 insertions, 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\"