Changeset 1613 for palm/trunk/SCRIPTS/palm_wdd
- Timestamp:
- Jul 8, 2015 2:53:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_wdd
r1612 r1613 20 20 # Current revisions: 21 21 # ----------------- 22 # 22 # Bugfix: tooltip for queuing name did not show up on first update. 23 # New: added contect menu for showing the parameter file and the run control 24 # output 23 25 # 24 26 # Former revisions: … … 200 202 return return_message 201 203 204 def GetPARIN(username,jobid): 205 206 # collect progress information 207 cmd_dorestart = "cat " + cmd_tmpdir + "/" + username + "." + jobid.partition(".")[2] + "/PARIN" 208 try: 209 devnull = open(os.devnull, 'w') 210 out = check_output(cmd_dorestart, shell=True, stderr=devnull) 211 return_message = out 212 out = None 213 except: 214 return_message = "Action failed." 215 216 return return_message 217 218 def GetRC(username,jobid): 219 220 # collect progress information 221 cmd_dorestart = "cat " + cmd_tmpdir + "/" + username + "." + jobid.partition(".")[2] + "/RUN_CONTROL" 222 try: 223 devnull = open(os.devnull, 'w') 224 out = check_output(cmd_dorestart, shell=True, stderr=devnull) 225 return_message = out 226 out = None 227 except: 228 return_message = "Action failed." 229 230 return return_message 202 231 203 232 # START OF MAIN … … 214 243 elif ( action == "restart"): 215 244 print DoRestartNow(data,data2) 245 elif ( action == "parin"): 246 print GetPARIN(data,data2) 247 elif ( action == "rc"): 248 print GetRC(data,data2) 216 249 else: 217 250 print "Error. Action " + action + " unknown."
Note: See TracChangeset
for help on using the changeset viewer.