News for hackers. Stuff that matters.
Re:Unix command line queue utility by CyberShadow on Wednesday August 26, 2015 @05:44PM (#10126218)
Could you please add some usage examples or elaborate on when this tool would be useful? For example,

> building several targets of a Makefile

As opposed to `make && sudo make install` ?

> downloading multiple files one at a time

As opposed to `(wget url1 &) ; (wget url2 &)` ?

> or simply as a glorified `nohup`

As opposed to `nohup` ?

Re:Unix command line queue utility by cozzyd on Wednesday August 26, 2015 @06:18PM (#10126369)
I imagine it's useful if you don't know all the commands you want to queue at the beginning.

For example:

    nq ./my_awesome_analysis /data/complicated_file_with_long_name.dat

    # um... what's the next file? 

    ls /data 
    nq ./my_awesome_analysis /data/even_more_complicated_path.dat

    man rsync
    nq rsync -avh --progress out* somewhere_else.net:
Re:Unix command line queue utility by jessaustin on Wednesday August 26, 2015 @06:32PM (#10126428)
You don't need nq for that. Just kick off ./my_lame_analysis in the background whenever you want.
Re:Unix command line queue utility by cozzyd on Wednesday August 26, 2015 @06:59PM (#10126505)
Yes but then they will execute at the same time instead of sequentially.
Re:Unix command line queue utility by shanemhansen on Wednesday August 26, 2015 @07:20PM (#10126583)
How about:

    ./my_awesome_analysis /data/complicated_file_with_long_name.dat &
    # do some stuf
    wait
    ./my_awesome_analysis /data/even_more_complicated_path.dat
Re:Unix command line queue utility by e40 on Wednesday August 26, 2015 @07:33PM (#10126626)
It's still not equivalent, and it's more cumbersome.
Re:Unix command line queue utility by PeterWhittaker on Wednesday August 26, 2015 @05:51PM (#10126248)
Thank you for making the comment I came to make!

The shells have had queueing for, well, a very, very long time....