Ignore:
Timestamp:
Jul 8, 2015 2:53:29 PM (9 years ago)
Author:
maronga
Message:

bugfix in install_rrtmg, removed nc2vdf from mbuild, improved palm_wd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_wdd

    r1612 r1613  
    2020# Current revisions:
    2121# -----------------
    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
    2325#
    2426# Former revisions:
     
    200202      return return_message
    201203
     204def 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
     218def 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
    202231
    203232# START OF MAIN
     
    214243elif ( action == "restart"):
    215244   print DoRestartNow(data,data2)
     245elif ( action == "parin"):
     246   print GetPARIN(data,data2)
     247elif ( action == "rc"):
     248   print GetRC(data,data2) 
    216249else:
    217250   print "Error. Action " + action + " unknown."
Note: See TracChangeset for help on using the changeset viewer.