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

[HTCondor-users] Use execute machine environment variable



Hello!
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.