Changeset 1618 for palm/trunk/SCRIPTS/palm_wdd
- Timestamp:
- Jul 13, 2015 6:52:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_wdd
r1614 r1618 20 20 # Current revisions: 21 21 # ----------------- 22 # 22 # Added steering via configuration file, to be placed in the home directory of the 23 # remote host to be monitored. 23 24 # 24 25 # Former revisions: … … 56 57 #------------------------------------------------------------------------------! 57 58 59 import ConfigParser 58 60 import os 61 from subprocess import check_output 59 62 import sys 60 from subprocess import check_output 61 62 # START OF HEADER 63 64 # configuration for host 65 cmd_readqueue = "showq | egrep " 66 cmd_tmpdir = "/gfs1/tmp/" 67 cmd_canceljob = "canceljob" 68 cmd_checkjob = "checkjob" 69 cmd_realname_grep = "AName" 70 cmd_starttime = "showstart" 71 cmd_starttime_grep = "start in" 72 73 # END OF HEADER 63 64 65 # Read configuration file 66 # First check if the configuration file exists 67 if ( os.path.exists('.wdd.config') == False ): 68 print "Error. No configuration file .wdd.config found." 69 raise SystemExit 70 71 config = ConfigParser.RawConfigParser() 72 config.read('.wdd.config') 73 74 cmd_readqueue = config.get('Settings', 'readqueue').strip('"') 75 cmd_tmpdir = config.get('Settings', 'tmpdir').strip('"') 76 cmd_canceljob = config.get('Settings', 'canceljob').strip('"') 77 cmd_checkjob = config.get('Settings', 'checkjob').strip('"') 78 cmd_realname_grep = config.get('Settings', 'realname_grep').strip('"') 79 cmd_starttime = config.get('Settings', 'starttime').strip('"') 80 cmd_starttime_grep = config.get('Settings', 'starttime_grep').strip('"') 74 81 75 82 … … 80 87 81 88 82 cmd_readqueue = cmd_readqueue + data89 cmd_readqueue = cmd_readqueue + " " + data 83 90 cmd_tmpdir = cmd_tmpdir + data 84 85 86 91 87 92 # reading queuing system
Note: See TracChangeset
for help on using the changeset viewer.