Ignore:
Timestamp:
Sep 6, 2017 2:28:14 PM (4 years ago)
Author:
maronga
Message:

watchdog adapted for palmrun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_wd

    r1754 r2416  
    2525# -----------------
    2626# $Id$
     27# Adapted for palmrun
     28#
     29# 1754 2016-02-22 13:50:22Z maronga
    2730#
    2831# 1753 2016-02-22 13:49:49Z maronga
     
    662665        # Return internal jobname
    663666        jobname = self.table.item(self.table.currentRow(),6).text()
     667        jobrealname = self.table.item(self.table.currentRow(),0).text()     
    664668 
    665669        # Check description of job in order to login on the correct host
     
    700704    def ShowDetails(self):
    701705
    702         jobname = self.table.item(self.table.currentRow(),6).text()
     706        jobname = self.table.item(self.table.currentRow(),6).text() 
    703707        descr   = self.table.item(self.table.currentRow(),1).text()
    704708        for h in range(0,len(description)):
     
    725729        # Return internal jobname
    726730        jobname = self.table.item(self.table.currentRow(),6).text()
    727  
     731        jobrealname = self.table.item(self.table.currentRow(),0).text()   
    728732        # Check description of job in order to login on the correct host
    729733        descr = self.table.item(self.table.currentRow(),1).text()
     
    733737                user = username[h]
    734738
    735         ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd stop " + user + " " + jobname],
     739        ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd stop " + jobrealname],
    736740                           shell=False,
    737741                           stdout=sub.PIPE,
     
    756760        # Return internal jobname
    757761        jobname = self.table.item(self.table.currentRow(),6).text()
    758  
     762        jobrealname = self.table.item(self.table.currentRow(),0).text()   
     763         
    759764        # Check description of job in order to login on the correct host
    760765        descr = self.table.item(self.table.currentRow(),1).text()
     
    764769                user = username[h]
    765770
    766         ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd restart " + user + " " + jobname],
     771        ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd restart " + jobrealname],
    767772                           shell=False,
    768773                           stdout=sub.PIPE,
     
    796801                user = username[h]
    797802
    798         ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd parin " + user + " " + jobname],
     803        ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd parin " + jobrealname],
    799804                           shell=False,
    800805                           stdout=sub.PIPE,
     
    829834                user = username[h]
    830835
    831         ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd rc " + user + " " + jobname],
     836        ssh = sub.Popen(["ssh", "%s" % host, "/sw/tools/python/2.7.6/generic/bin/python palm_wdd rc " + jobrealname],
    832837                           shell=False,
    833838                           stdout=sub.PIPE,
Note: See TracChangeset for help on using the changeset viewer.