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

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



No luck, so I shall use $$(machine)!

On Mon, Feb 13, 2012 at 10:43 AM, Geoffrey Hibbert <hibbert.geoffrey@xxxxxxxxx> wrote:
You're the man, Dan! Is there anyway to make it just do hostname, not FQDN? I noticed you had me use two $$'s in front of the variable. Off to try $$(hostname). Wether or not it works is not really that important, just curious. Thanks again!

Geoffrey Hibbert
On Mon, Feb 13, 2012 at 10:35 AM, Dan Bradley <dan@xxxxxxxxxxxx> wrote:


On 2/13/12 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)

Perhaps $$(machine) is what you want.

--Dan


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