Here is the functionality I am looking for (and not found):
I have x processes that I want to run sequentially. Some may take a long time.
I want these processes to run in the background of my shell.
I know about nohup, but it doesn't seem to work fine ... if job1 is a time-consuming job, if I ctrl + c from the empty line that I get after running nohup job1 && & job2 && job3 &, then job2 and job3 are not will run, and job1 may or may not start depending on how long I can run nohup.
Is there a way to get the functionality I want? I am connected to linux server. For bonus points, I would like it if the tasks that I put in the queue continued to work, even if I closed my connection.
Thank you for your help.
EDIT: little addition to the question: if I have a shell script with three exec statements
exec BIGTHING exec littlething exec smallthing
will it definitely be consistent? And is there a way to wrap them all in one line of exec to get equivalent functionality?
those. exec BIGTHING and smallthing and smallthing or && & or somesuch
linux queue
A question asker
source share