#!/usr/bin/env python # # Project: # glideinWMS # # File Version: # # Description: # Execute a ps command on a condor job # # Usage: # glidein_ps.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>] [<options>] # # Author: # Igor Sfiligoi (May 2008) # # License: # Fermitools # import sys,os.path sys.path.append(os.path.join(sys.path[0],"lib")) sys.path.append(os.path.join(sys.path[0],"../lib")) import glideinCmd glideinCmd.exe_cmd_simple(lambda argv:(['ps', '-u', '`id', '-n', '-u`']+argv))
# glideinWMS # # File Version: # $Id: glidein_top.py,v 1.5 2011/02/10 21:35:31 parag Exp $ # # Description: # Execute a top command on a condor job # # Usage: # glidein_top.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>] # # Author: # Igor Sfiligoi (May 2007) # # License: # Fermitools # import sys,os.path sys.path.append(os.path.join(sys.path[0],"lib")) sys.path.append(os.path.join(sys.path[0],"../lib")) import glideinCmd def argv_top(argv): if len(argv)!=0: raise RuntimeError, "Unexpected parameters starting with %s found!"%argv[0] return ['top', '-b', '-n', '1'] glideinCmd.exe_cmd_simple(argv_top)