September 12, 2007
A fairly big update to the script, I've added several new features:
- Notifications via libnotify

- Download History
- Reprioritization via move, up, and down commands
- Added the ability to add multiple urls at once
- Added the ability to skip a download via CTRL+C (moves it to end of queue)
- -f option for custom queue.txt at command line
- -c option for custom .dqcfg at command line
Get the updated script here:
Download Queue v0.2
If some of the new code seems a little hack-ish just remember, I'm still learning.
Next on the agenda:
- Figure out how to account for wget getting 404, 503, etc, while still providing real-time output to the command line.
- Download grouping and/or contexts (i.e. if a download falls within a certain context, check against a certain set of filters)
- Modified "start" command (download a certain number of urls, a certain range, or those matching a certain regex)
Tags: Projects, Command Line, dq, Linux, scripting
Comments
Henrik
Is it possible to make it work on Darwin/Mac also?
Jason
I'm afraid I've never used Darwin/Mac, but if you tell me what kind of errors you're getting (if any) I might be able to work it out.
Henrik
I get this error:
./dq.sh: line 199: conditional binary operator expected
./dq.sh: line 199: syntax error near `=~'
./dq.sh: line 199: ` if [[ "$getfile" =~ ${FILTERMATCH[$index]} ]]; then'
I'm not that good in the terminal either. Hope you have some clues about whats wrong.
Tony Agudo
Hmm, it seems that the "=~" operator may be the problem. Perhaps the =~ operator isn't defined on the Mac's version of bash(I have bash v3.2.13 on Ubuntu Feisty).
Note to Jason: the extra pair of square brackets in the if test aren't needed.
kevin
hmm why did u zip as rar?
won't gzip be a more popular choice?
have to hunt for unrar now heh
MotoQ
Not work in all servers! :0(
What is your SO?
I get this same error:
./dq.sh: line 199: conditional binary operator expected
./dq.sh: line 199: syntax error near `=~'
./dq.sh: line 199: ` if [[ "$getfile" =~ ${FILTERMATCH[$index]} ]]; then'
Nathaniel
Seems the =~ operator only exists in newer version of Bash 3.x