Hello Michele,
Thanks for the example submit file and scripts. After messing around with those I did get the bash argument to be a full line and not just the first word. First, the arguments line must be contained in double quotes to allow whitespaces:
arguments = "first_argument $(TEST_ARG)"
Then you should be able to make TEST_ARG work with or without quotations:
Without quotations
TEST_ARG = 'second argument' -> argument 2 = second argument
With Single quotes
TEST_ARG
= '''second argument''' -> argument 2 = 'second argument'
With Double quotes
TEST_ARG = '""second argument""' -> argument 2 = "second argument"
I hope this helps you.
Cheers,
Cole Bollig
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Michele Peresano <michele.peresano@xxxxxxxxxx>
Sent: Tuesday, December 6, 2022 7:30 AM To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx> Subject: Re: [HTCondor-users] String composite argument Dear Cole,
I tried making a specific test and it didn’t work:
my test.sub
my executable test.sh
Arguments from Dry run
The resulting test.out,
|