Pali wrote:sabbelgreth wrote:The current version already supports that. To add a new torrent download task, you may just append the torrent file name to the command line, e.g. "C:\Program Files\Java\jre1.6.0_07\bin\java.exe" -jar jget.jar %*
That's a good news. I expected that I already have latest version, because version was same 0.1.
CasperTDK: I made new script, which use jget directly.
- Code: Select all
#!/bin/sh
# Temp directory
DIR=/tmp
# JGet
JGET=/<path>/jget.jar
# parse file name from the url
file=$(basename $1)
# download file
wget --output-document "$DIR/$file" "$1"
# send file to NAS
java -jar $JGET "$DIR/$file" &
# remove temp file
#rm "$DIR/$file"
Change the jget path and temp dir. Temporary directory location can be also the problem in os x. Change /tmp to somewhere you home directory.
Thanks, I will download the beta java 1.6 for OS X and then try it out. I will provide feedback as soon as I have tried it.
UPDATE: It works. Thanks. I just appreciated your old method more. Except that the password was displayed plainly - Would have to figure out a work-around for that one.
This method launches a whole app, where I have to enter my information and then close down the program again. Also, it jget.jar doesn't remember any of my info, so I have to type everything each time. Not that it has to do anything with you though

I appreciate the script.
I just like the whole idea: "alt-click link" and then you know that your NAS server is working on it. No popups where you have to type info and all that bloat.
Not that jGet is a bad program, it is just that its not what I am looking for. I don't need a program to manage my downloads

Back to your original script though:
I tried changing the temp directory to DIR=/Users/caspertdk/Documents/Torrents
The whole thing still works in terminal, but yeah, same result using flashgot. It does not even execute wget *sigh*. Which also means that, even if I had zenity installed, it wouldn't matter, since if wget does not execute, curl wouldn't either. No error would be displayed