A new doc condor_config.html is being added showing the condor configuration
[burt-test.git] / tools / glidein_top.py
blobad5782ceab4408ccedd5e96eabea215bf06a8978
1 #!/usr/bin/env python
3 # Project:
4 # glideinWMS
6 # File Version:
7 # $Id: glidein_top.py,v 1.5 2011/02/10 21:35:31 parag Exp $
9 # Description:
10 # Execute a top command on a condor job
12 # Usage:
13 # glidein_top.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>]
15 # Author:
16 # Igor Sfiligoi (May 2007)
18 # License:
19 # Fermitools
22 import sys,os.path
23 sys.path.append(os.path.join(sys.path[0],"lib"))
24 sys.path.append(os.path.join(sys.path[0],"../lib"))
26 import glideinCmd
28 def argv_top(argv):
29 if len(argv)!=0:
30 raise RuntimeError, "Unexpected parameters starting with %s found!"%argv[0]
31 return ['top', '-b', '-n', '1']
33 glideinCmd.exe_cmd_simple(argv_top)