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

Re: [Condor-users] Location of Execution files



> What I have to do is, as you said, to change my code "to look
> in the working directory for any input files it requires".
> 
> However I have used a simple myFile.open(.....directory and
> file........); command in C++. If the directory depends on
> the processID then I cannot just hardcode.
>
> "myfile.open(c:\condor\execute\dir\EXCEL.xls)"
>
> This means I have to find another way of finding and opening
> EXCEL. Does the _CONDOR_SCRATCH_DIR set the processed
> permanently to 400? and on all execution nodes?

The process ID changes every time Condor starts a new job. But that shouldn't matter. Condor will put both the Excel file and the executable in the same temporary directory for you on the remote machine. So you only need to say:

        myfile.open(.\EXCEL.xls)

in your C++ file. "." is short-hand for "current working directory".

> I am also looking into a way of opening a file from the working
> direcotry, however being a beginner with both Condor and C++ it
> might take some time. However it might be as simple as opening
> a file in the working directory.

See above. :)

- Ian

Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution,  or copying  of this message, or any attachments, is strictly prohibited.  If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments.  Thank you.