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

Re: [HTCondor-users] Use execute machine environment variable

There are some solutions to your problem. I'm employing, nowadays, STARTD variables that I can put in the submit files, for example:

Add to HTCondor configuration (execute nodes):

EXECUTABLE_PATH = "c:\xpto\asd.exe"

And you'll be able to put, on the submit file:

executable = $$(EXECUTABLE_PATH)

Var will be resolved on executing machine. As I said, this is only one way to address the problem, but it works.

Ivo Cavalcante

Em qua, 17 de mai de 2017 12:10, Fernando Nellmeldin <f.nellmeldin@xxxxxxxxxxxxxxxxxxxx> escreveu:
I'm new to HTCondor (less than 1 week!) and I'm trying to set our network to run it.Â
So far, we have the Executor nodes in Linux, and most of the Submit machines are Windows 8.Â
Everything is working as expected and I can send jobs from Windows and Linux without a problem.

What I would like to know is if it is possible to pick the executable from the environment variables of the ExecutorÂnode.Â
So far, our submit file starts with:
Universe = vanilla
Executable = /path/to/executable.sh
transfer_executable = false
copy_to_spool = false

But the path to the executable could change between ExecutorÂnodes, so it would be nice to say:
executable = $EXECUTABLE_PATH
and every node set would set this variable to the correct location. Is it possible to do this?Â

I do know that you can define and pass some environment variables with:
environment = "var=value"

And it is even possible to pass the complete environment of the Submit machine with:
getenv = True

But I would like to have access to the environment of the ExecutorÂnode... As I am very new to HTCondor, maybe I am missing something obvious here. Sorry for that!

Thank you very much.

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: