Download Queue (DQ) v0.2

September 12, 2007

Download Queue Screenshot

A fairly big update to the script, I've added several new features:



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:

Tags: Projects, Command Line, dq, Linux, scripting

Comments

1
September 16, 2007 @ 3:04 pm

Henrik

Is it possible to make it work on Darwin/Mac also?

2
September 16, 2007 @ 3:34 pm

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.

3
September 17, 2007 @ 2:28 pm

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.

4
September 17, 2007 @ 3:41 pm

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.

5
September 20, 2007 @ 3:58 am

kevin

hmm why did u zip as rar?
won't gzip be a more popular choice?
have to hunt for unrar now heh

6
January 2, 2008 @ 11:52 am

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'

7
March 6, 2009 @ 3:31 pm

Nathaniel

Seems the =~ operator only exists in newer version of Bash 3.x

Post Comment






* Will not be shared or published