debugging thor things: thor submissions can't handle UTF names

This commit is contained in:
othocaeS 2016-07-25 17:44:27 -04:00
parent 65d8360e22
commit 4e6fbe6748

View File

@ -113,11 +113,12 @@ do
else
if [[ $1 == "thor" ]]
then
argsfile="thor/arguments/$echo_band.args"
submitscript="thor/${echo_band}.pbs"
echo_band_noUTF=$(echo $echo_band|sed 's@𝛌@@g'|sed 's@@@g'|sed 's@Å@A@g')
argsfile="thor/arguments/$echo_band_noUTF.args"
submitscript="thor/${echo_band_noUTF}.pbs"
cp tmp.psdlagargs $argsfile
cat scripts/templates/thor_submit.pbs|
sed "s@%NAME%@'${echo_band} psdlag'@g"|
sed "s@%NAME%@psdlag_${echo_band_noUTF}@g"|
sed "s@%ARGSFILE%@${argsfile}@g"|
sed "s@%ROOTDIR%@$(pwd)@g"|
sed "s@%OUTPUTFILE%@${outputfile}@g" > $submitscript