[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] condor_submit with -append arguments



On 12/09/2010 12:16 PM, Anthony Tiradani wrote:
Hello,

Looking at the man page for condor_submit, I noticed that there is an
-append argument.  It looks to me that it allows you to dynamically
specify much of the contents of the submit description file.  Is it
expected behavior that you cannot specify condor macros using the
-append argument?

Assuming macros means $(cluster)|$(proc), then no.

12:18:24pm> eeyore:~ $ cat > an.job
cmd = /bin/sleep
args = 3
queue
12:19:31pm> eeyore:~ $ condor_q
-- Submitter: eeyore.local : <127.0.0.1:49062> : eeyore.local
ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD0 jobs; 0 idle, 0 running, 0 held
12:19:37pm> eeyore:~ $ condor_submit an.job
Submitting job(s).
1 job(s) submitted to cluster 10041.
12:19:43pm> eeyore:~ $ condor_submit -append 'args = $(cluster)' an.job
Submitting job(s).
1 job(s) submitted to cluster 10042.
12:19:44pm> eeyore:~ $ condor_q
-- Submitter: eeyore.local : <127.0.0.1:49062> : eeyore.local
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD
10041.0   matt           12/9  12:19   0+00:00:00 I  0   0.0  sleep 3
10042.0   matt           12/9  12:19   0+00:00:00 I  0   0.0  sleep 10042
2 jobs; 2 idle, 0 running, 0 held

Best,


matt