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

Re: [HTCondor-users] escaping of an argument



If you want the value of HOSTNAME environment variable, use $HOSTNAME.

If you want the output of the hostname command, use $(hostname), or backtick hostname backtick , where backtick is unshifted tilde key on US keyboards.

Note that both of these suggestions assume that the command is being run in a shell, which the example was not. You'd have to do something like

executable		= /bin/bash
arguments		= -c 'echo `hostname`'
output 			= the_remote_hostname
transfer_executable	= false

instead.

I'm guessing your "hands-on" was about learning the submit language, but if it wasn't, you may want to take a look at condor_run.

-- ToddM