From: mkrzewic Date: Wed, 14 May 2014 12:38:56 +0000 (+0200) Subject: also on a batch farm encode spaces to avoid problems parsing arguments X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=b0e401b4de5e5ee42545c695c4419d751d8cadb9;p=u%2Fmrichter%2FAliRoot.git also on a batch farm encode spaces to avoid problems parsing arguments which contain them --- diff --git a/PWGPP/benchmark/benchmark.sh b/PWGPP/benchmark/benchmark.sh index 74da32b4fc3..b1100648f06 100755 --- a/PWGPP/benchmark/benchmark.sh +++ b/PWGPP/benchmark/benchmark.sh @@ -1513,6 +1513,12 @@ goSubmitBatch() extraOpts=("$@") if ! parseConfig ${configFile} "${extraOpts[@]}"; then return 1; fi + #batch systems/makeflow sometimes handle spaces in arguments poorly, so encode them + for (( i=0;i<${#extraOpts[@]};i++ )); do + extraOpts[i]=$(encSpaces "${extraOpts[i]}") + done + extraOpts+=("encodedSpaces=1") + #record the working directory provided by the batch system batchWorkingDirectory=${PWD}