On Wed, Mar 3, 2021 at 9:46 PM Joe Sapp <sa...@ieee.org> wrote: > I tried a feature today (version 20210222) that I haven't before and > got an unexpected error: > > $ parallel -j1 --resume --joblog test_joblog.log --results test-$(date > > +%Y%m%dT%H%M%SZ).csv 'echo {}; sleep 2s' ::: $(seq 100) > > mkdir test-20210303T203326Z.csv: File exists at > > /home/joe/.local/bin/parallel line 11126. > > And the file certainly does (now) exist, but I was not expecting it to > write into it like a directory. > > Additionally, this command causes the error: > > $ parallel -j1 --resume --results test-$(date +%Y%m%dT%H%M%SZ).csv 'echo > > {}; sleep 2s' ::: $(seq 100)
--results *.tsv/.csv is currently not supported with --resume. https://savannah.gnu.org/bugs/index.php?60179 The workaround is: diff --git a/src/parallel b/src/parallel index 3be9c66..f06b5ff 100755 --- a/src/parallel +++ b/src/parallel @@ -3452,7 +3452,7 @@ sub init_run_jobs() { } } while ($job->is_already_in_joblog() or - ($opt::results and $opt::resume and $job->is_already_in_results())); + ($opt::results and not $Global::csvsep and $opt::resume and $job->is_already_in_results())); debug("start", "Command to run on '", $job->sshlogin()->string(), "': '", $job->replaced(),"'\n"); if($job->start()) { /Ole