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

Re: [Condor-users] Perl API and current dir problem



Thanx Matt,
I thought there would be something like that but couldn't spot it in the docs.
Now I know what to Google for, it's quite obvious :-)

--Russell

> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
> bounces@xxxxxxxxxxx] On Behalf Of Matt Hope
> Sent: Tuesday, 18 August 2009 9:19 p.m.
> To: 'Condor-Users Mail List'
> Subject: Re: [Condor-users] Perl API and current dir problem
> 
> this is provided via an environment variable: _CONDOR_SCRATCH_DIR
> 
> I mess about with things like this within a batch script in my submissions.
> I'm not sure using the following in your arguments:
> 
> Arguments = -t 4 -B 2 -f 2 -D . -d bta_4.2_all %_CONDOR_SCRATCH_DIR%
> Arguments = -t 4 -B 2 -f 2 -D . -d bta_4.2_all ${_CONDOR_SCRATCH_DIR}
> 
> (depending on OS flavour) will work. $ENV(FOO) won't because this is evaluated
> at submission with the submitters environment.
> 
> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
> bounces@xxxxxxxxxxx] On Behalf Of Smithies, Russell
> Sent: 18 August 2009 02:36
> To: 'Condor-Users Mail List'
> Subject: [Condor-users] Perl API and current dir problem
> 
> I'm using the Perl API to break up a large file and submit it incrementally to
> individual nodes.
> The problem is how do I get the name of the directory that the job is going to
> run in on the node?
> Eg //node_1/home/condor/execute/dir_29509
> I need to add this as an arg to the executable in the submit file and I can't
> see a way to do it. (passing it "." isn't working)
> 
> Start of my submit file looks lke this:
> 
> 	Executable = /usr/bin/gmap
> 	Universe = vanilla
> 	# args to GMAP
> 	Arguments = -t 4 -B 2 -f 2 -D . -d bta_4.2_all :INPUT_FILE:
> 
> The '-D' param needs to point to be the full path to the current dir.
> 
> Any ideas?
> 
> Thanx,
> 
> 
> Russell Smithies
> 
> Bioinformatics Applications Developer
> T +64 3 489 9085
> E  russell.smithies@xxxxxxxxxxxxxxxx
> 
> Invermay  Research Centre
> Puddle Alley,
> Mosgiel,
> New Zealand
> T  +64 3 489 3809
> F  +64 3 489 9174
> www.agresearch.co.nz
> 
> 
> =======================================================================
> Attention: The information contained in this message and/or attachments
> from AgResearch Limited is intended only for the persons or entities
> to which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipients is prohibited by AgResearch
> Limited. If you have received this message in error, please notify the
> sender immediately.
> =======================================================================
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
> 
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/
> 
> ----
> Gloucester Research Limited believes the information provided herein is
> reliable. While every care has been taken to ensure accuracy, the information
> is furnished to the recipients with no warranty as to the completeness and
> accuracy of its contents and on condition that any errors or omissions shall
> not be made the basis for any claim, demand or cause for action.
> The information in this email is intended only for the named recipient.  If
> you are not the intended recipient please notify us immediately and do not
> copy, distribute or take action based on this e-mail.
> All messages sent to and from this email address will be logged by Gloucester
> Research Ltd and are subject to archival storage, monitoring, review and
> disclosure.
> Gloucester Research Limited, 5th Floor, Whittington House, 19-30 Alfred Place,
> London WC1E 7EA.
> Gloucester Research Limited is a company registered in England and Wales with
> company number 04267560.
> ----
> 
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
> 
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/