Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] escaping of an argument
- Date: Tue, 1 Oct 2024 07:50:52 +0200 (CEST)
- From: "Beyer, Christoph" <christoph.beyer@xxxxxxx>
- Subject: Re: [HTCondor-users] escaping of an argument
argh,
yes that was just one of my countless tries $HOSTNAME vs $(hostname) getting mixed up ;)
thanks
christoph
--
Christoph Beyer
DESY Hamburg
IT-Department
Notkestr. 85
Building 02b, Room 009
22607 Hamburg
phone:+49-(0)40-8998-2317
mail: christoph.beyer@xxxxxxx
----- UrsprÃngliche Mail -----
Von: "David Johnson" <david_johnson@xxxxxxxxx>
An: "HTCondor-Users Mail List" <htcondor-users@xxxxxxxxxxx>
CC: "Condor-Users Mail List" <condor-users@xxxxxxxxxxx>
Gesendet: Montag, 30. September 2024 19:54:53
Betreff: 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.
-- ddj
Dave Johnson
> On Sep 30, 2024, at 1:47âPM, Beyer, Christoph <christoph.beyer@xxxxxxx> wrote:
>
> ïhi,
>
> I try something maximum simple for a hands-on but:
>
> executable = /usr/bin/echo
> arguments = "Hello world - I run on $(HOSTNAME)"
>
> Gives me either "$(HOSTNAME)" or empty - maybe someone knows how to escape it properly to get it interpreted on the worker, returning the actual name ?
>
> Best
> christoph
>
> --
> Christoph Beyer
> DESY Hamburg
> IT-Department
>
> Notkestr. 85
> Building 02b, Room 009
> 22607 Hamburg
>
> phone:+49-(0)40-8998-2317
> mail: christoph.beyer@xxxxxxx
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/