On 7/29/22 23:52, Ole Tange wrote:

Would this work:

#!/bin/bash
LOGDIR=/scratch/general/pe-nfs1/u0138544/logs
chmod a+x $LOGDIR/*
logfile="$LOGDIR"/mylog.$$
touch "$logfile"
chmod -R a+rw "$LOGDIR"

. /uufs/chpc.utah.edu/sys/installdir/sgspub/bin/sgsCP.sh

parallel \
     --joblog +"$joblog" \
      --verbose \
      --jobs 50% \
      --delay 1 \
      /uufs/chpc.utah.edu/sys/installdir/sgspub/bin/chaser-10Mt
83a9a2ad-fe16-4872-b629-b9ba70ed5bbb $endtime $JOBDIR ::: {1..750}

The idea is the same as my original: Make the file and set the
permissions before starting GNU Parallel.

/Ole

Ah, I missed the plus-sign nuance.  Yes, I believe that's the trick I've been looking for. Just out of curiosity, has that always been available?  It's been a very long time since I really read the --joblog portion of the manual.

Thank you, very much, for your time,
rjs


Reply via email to