Closed Swarchal closed 6 years ago
One bodge is to save individual rsync commands as temporary files and run them.
SEEDFILE="/home/s1027820/nuclei_annotated/staging.txt"
SEED=$(awk "NR==$SGE_TASK_ID" "$SEEDFILE")
echo "$SEED" > rsync_command_"$SGE_TASK_ID".sh
bash rsync_command_"$SGE_TASK_ID".sh
rm rsync_command_"$SGE_TASK_ID".sh
But it's a horrible hack.
Got it working by using rsync's
-s
flag and placing quotes around filenames, though only works outside of cptools2.No idea why it's breaking when ran from a qsub script.