diff options
author | James Meyer <james.meyer@operamail.com> | 2009-02-26 20:51:16 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-02-26 20:51:16 (GMT) |
commit | 9d768062e86e306c14979b3b19e5e96cbd357d20 (patch) | |
tree | 14bdc120ae5690055c6eaa3b3364f7ea4feaf1cf /abs/mv-core/local-website/contents | |
parent | 8564f284b1b20b75f9c81e819116dd292f547389 (diff) | |
download | linhes_pkgbuild-9d768062e86e306c14979b3b19e5e96cbd357d20.zip linhes_pkgbuild-9d768062e86e306c14979b3b19e5e96cbd357d20.tar.gz linhes_pkgbuild-9d768062e86e306c14979b3b19e5e96cbd357d20.tar.bz2 |
add * for host globbing on the func commands
Diffstat (limited to 'abs/mv-core/local-website/contents')
-rwxr-xr-x | abs/mv-core/local-website/contents/process.py | 9 |
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) |