commit_new_dsid.sh creates wrong links at the -n step
Dear Experts,
I would like to upload the new JO and the control file for a case when many DSIDs use a same control file, in SUSY. The folder structure is:
Dir1:
mc.1.py -> Control.py
Control.py
Dir2:
mc.2.py -> ../Dir1/Control.py
The jobs run successfully, and the first step of checks with commit_new_dsid.sh using --dry-run is also successful. However, when the option -n is used in the second step like:
./scripts/commit_new_dsid.sh -d=100001-100082 -n -m="SUSY direct stau, TFilt."
the linked files become wrong.
Initial input:
ls -lah 100xxx/100001/mc* 100xxx/100002/mc*
100xxx/100001/mc.MGPy8EG_StauStauDirect_120p0_1p0_TFilt.py -> SUSY_SimplifiedModel_StauStauDirect.py
100xxx/100002/mc.MGPy8EG_StauStauDirect_160p0_1p0_TFilt.py -> ../100001/SUSY_SimplifiedModel_StauStauDirect.py
After step -n:
ls -lah 501xxx/501047/mc* 501xxx/501048/mc*
501xxx/501047/mc.MGPy8EG_StauStauDirect_120p0_1p0_TFilt.py -> SUSY_SimplifiedModel_StauStauDirect.py
501xxx/501048/mc.MGPy8EG_StauStauDirect_160p0_1p0_TFilt.py -> ../../501xxx/501047/mc.MGPy8EG_StauStauDirect_160p0_1p0_TFilt.py
where the last file should be:
501xxx/501048/mc.MGPy8EG_StauStauDirect_160p0_1p0_TFilt.py -> ../501047/SUSY_SimplifiedModel_StauStauDirect.py
It seems there is a problem with the copy of files with a soft link.
I attach here the reduced example.
Many thanks for your help.
Cheers,
Judita
/cc @gstark , @sargyrop , @wfawcett , @cgutscho 100xxx_short.tar.gz
Edited by Judita Mamuzic