This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to use nohup with parallel

I run the follwing code in conda enviroment:

nohup cat list.txt |  parallel --jobs 10 fastq-dump {} --split-3 --gzip -O ./  > log.txt 2>&1 &

After I logging out from the terminal, the log.txt shows :

parallel: SIGHUP received. No new jobs will be started.

Is there anyway to continue the job after logging out?

parallel nohup

Thanks for your valuable suggestion!

1 answer

After command

cat list.txt | parallel --jobs 10 fastq-dump {} --split-3 --gzip -O ./ > log.txt 2>&1 &

you can use jobs -l to get the job pid, then run disown xxx, "xxx" is your job pid, then you can exit shell and won't affect your job.

Thanks, according to your suggestion, the following code work: disown -h -a

Log in to answer this question.