7 # $Id: glidein_ps.py,v 1.4 2011/02/10 21:35:31 parag Exp $
10 # Execute a ps command on a condor job
13 # glidein_ps.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>] [<options>]
16 # Igor Sfiligoi (May 2008)
23 sys
.path
.append(os
.path
.join(sys
.path
[0],"lib"))
24 sys
.path
.append(os
.path
.join(sys
.path
[0],"../lib"))
28 glideinCmd
.exe_cmd_simple(lambda argv
:(['ps', '-u', '`id', '-n', '-u`']+argv
))