<p><pre><code> $ mkfifo ~/.jobqueue
$ parallel :::: ~/.jobqueue
</code></pre>
now, from another terminal:<p><pre><code> echo ls > ~/.jobqueue
</code></pre>
Tada!<p>for a remote job queue, use nc instead of a fifo<p>for a job queue with a buffer, use a file, and run
$ parallel :::: <(tail -f thefile)
you can even truncate the file from time to time.<p>Of course, this doesn't capture the context you are in, such as your current directory or the value of shell variables.