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

Re: [Condor-users] Environment variables in arguments of submission taken literally.



Have your executable be a batch file that invokes test.exe.  using a batch file will cause condor to start up a command shell
to run it, and that will be able to translate %computername% and pass it to your executable.

-tj

On 2/13/2012 9:30 AM, Geoffrey Hibbert wrote:
In a submission file that looks like this:

universe=vanilla
requirements= OpSys != "Dummy" && Arch != "Dummy"
priority=0
transfer_executable=false
log=X:\3.CONDOR\CondorLogs\
CONDOR.log
log_xml=true

run_as_owner=true
executable=C:\Program Files\TestProgram\test.exe
arguments=-c %computername%
output=X:\3.CONDOR\CondorLogs\test.out
error=X:\3.CONDOR\CondorLogs\test.err
log=X:\3.CONDOR\CondorLogs\test.log
queue

The arguments of the job end up being a literal "-c %computername%" instead of the processing nodes environment variables being used, like "-c process_01"

Is there a way to do this?

I also tried using $(hostname)

Thanks!


_______________________________________________
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/