Also Pueue (https://github.com/Nukesor/pueue)
Always happy to see my stuff getting recommended :D
Damn that's a precious tool. Thank you for showing it to me!
I second the recommendation for task spooler, which seems to cover similar ground to nq. It's a really nice way to queue simple long-running tasks without having to write code or set up infrastructure.
I wrote an answer on Super User [0] on how to use this neat tool. There are use cases where it really comes in handy. For example when copying a lot of files around to various folders that sits on the same disk so that you can assume that it won't run efficiently in parallel.
When I think of it even lftp has queue and jobs commands. But "task spooler" is the generic tool you can use for more general use cases than file copying.
0. https://superuser.com/questions/220364/how-to-run-commands-a...
I have used tsp to send hundres of millions of euros for a company. great tool
Wish it has chaining of commands - if xx fails then do yyy
Re:Nq – A simple Unix job queue system
by pdimitar on Wednesday January 27, 2021 @08:19PM
(#25936827)
Excellent writeup, thank you!
Heh, I use ts(1) on a fairly regular basis. It is a very nice tool, and it even supports multiple job queues via environment variables.
This. Taskspooler is a powerful but simple tool that seems to be fairly unknown.
I knew about it, but years go by and I can't honestly say that I ever needed it.
http://manpages.ubuntu.com/manpages/xenial/man1/tsp.1.html