summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/local-website/contents/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/local-website/contents/process.py')
-rwxr-xr-xabs/mv-core/local-website/contents/process.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/abs/mv-core/local-website/contents/process.py b/abs/mv-core/local-website/contents/process.py
index d74fb47..6b45fd8 100755
--- a/abs/mv-core/local-website/contents/process.py
+++ b/abs/mv-core/local-website/contents/process.py
@@ -188,7 +188,7 @@ def go_shutdown(myhost):
time.sleep(3)
command="sudo /sbin/poweroff "
else:
- command="sudo /usr/bin/func " + myhost.strip() + " call power poweroff "
+ command="sudo /usr/bin/func \"" + myhost.strip() + "*\" call power poweroff "
message="Shutdown from MBE:::ALT"
os.system("/usr/bin/osdClient.pl " + myhost.strip() + " 5000 " + "\"" + message + "\"" )
time.sleep(3)
@@ -227,12 +227,7 @@ def go_reboot(myhost):
time.sleep(3)
command="sudo /sbin/reboot "
else:
- #sshcmd="ssh -o StrictHostKeyChecking=no -o ConnectTimeout=1 -i /data/srv/.nobody_ssh/id_dsa mythtv@"
- #sshcmd+=myhost.strip()
- #cmd=" sudo poweroff"
- #command=sshcmd + cmd + " 2>&1 "
- #using func
- command="sudo /usr/bin/func " + myhost.strip() + " call power reboot "
+ command="sudo /usr/bin/func \"" + myhost.strip() + "*\ call power reboot "
message="Reboot from MBE:::ALT"
os.system("/usr/bin/osdClient.pl " + myhost.strip() + " 5000 " + "\"" + message + "\"" )
time.sleep(3)