Unix command line queue utility
github.com
Unix command line queue utility
1–10 of 20 posts
Re: Unix command line queue utility
#2Re: Unix command line queue utility
#3> 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
#4Could 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` ?
The shells have had queueing for, well, a very, very long time....
Re: Unix command line queue utility
#5Could 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` ?
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
#6Re: Unix command line queue utility
#7Could 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` ?
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
#8Earlier quoted context omitted.
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:
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
#9Queues up 20 concurrent downloads with wget, for example.
Re: Unix command line queue utility
#10cat list.txt | xargs -n 1 -P 20 wget Queues up 20 concurrent downloads with wget, for example.