diff options
Diffstat (limited to 'abs/core/supplemental-web/contents')
-rw-r--r-- | abs/core/supplemental-web/contents/process.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/abs/core/supplemental-web/contents/process.py b/abs/core/supplemental-web/contents/process.py index 6ae7363..f6c6db1 100644 --- a/abs/core/supplemental-web/contents/process.py +++ b/abs/core/supplemental-web/contents/process.py @@ -101,7 +101,7 @@ def go_backup(myhost): results="Nothing happened" command= "sudo /usr/LH/bin/lh_system_backup_job" print command - command2="sleep 1; /data/srv/hobbit/server/ext/hbnotes.py" + command2="sleep 1; /home/xymon/server/ext/hbnotes.py" results=os.popen(command,'r') os.popen(command2,'r') @@ -110,14 +110,16 @@ def go_backup(myhost): def go_restore(restorefile,myhost): myhostname = socket.gethostname() if myhostname.strip() == myhost.strip(): - localcommand="sudo /usr/bin/restore_job.sh " + localcommand="sudo /usr/LH/bin/lh_system_restore_job " command= localcommand + restorefile + else: + #this should never execute sshcmd="ssh -o StrictHostKeyChecking=no -o ConnectTimeout=1 -i /data/srv/.nobody_ssh/id_dsa mythtv@" sshcmd+=myhost.strip() cmd=' "sudo /usr/bin/restore_job.sh " ' command=sshcmd + cmd + restorefile + " 2>&1 " - + print command results=os.popen(command,'r') return results |