Search found 5 matches

by dexus
Sat Mar 09, 2013 8:56 pm
Forum: Support
Topic: On completion script variables please help.
Replies: 2
Views: 4396

Re: On completion script variables please help.

Thanks for replying again x190, but I found the flaw.

When using bash heredocs, the end phrase needs to be by itself on the line, with no whitespace.
My EOF's was indented, and that caused the error.

Now this script works flawlessly, and I can highly recommend this to anyone who need a simple ...
by dexus
Fri Mar 08, 2013 3:27 pm
Forum: Support
Topic: On completion script variables please help.
Replies: 2
Views: 4396

Re: On completion script variables please help.

Thanks for the reply..

Still does not work, tho.. This is the current "non working" code..


#!/bin/bash

if [[ "$TR_TORRENT_DIR" == *data* ]];
then
lftp << EOF
open -u username,password my.ftp.site
mirror -R $TR_TORRENT_DIR/$TR_TORRENT_NAME /TV/
lcd $TR_TORRENT_DIR
cd /TV/
put $TR_TORRENT ...
by dexus
Fri Mar 08, 2013 4:35 am
Forum: Support
Topic: On completion script variables please help.
Replies: 2
Views: 4396

On completion script variables please help.

Hi.

I am in no way an accomplished script-writer, but this seemed to be in my range.. but alas! I just can't understand what I am doing wrong..
I am trying to read the $TR_TORRENT_DIR variable, and then ftp the downloaded files to my local ftp server, choosing a folder based on the string value.

I ...
by dexus
Thu Feb 11, 2010 6:58 pm
Forum: Requests
Topic: Define download dir for torrents started by watch dir
Replies: 1
Views: 2549

Define download dir for torrents started by watch dir

One feature I really miss is the possibility to define a separate download folder for torrents started using the watch folder.

I use rss to download files to my watch folder, and ftp-monitor to automatically fetch the files downloaded to my local box.
this works very well, but often I wish to use ...
by dexus
Thu Feb 11, 2010 2:46 pm
Forum: Support
Topic: Own download dir for "watchdir" torrents possible?
Replies: 0
Views: 1076

Own download dir for "watchdir" torrents possible?

Hi! I was wondering if it is possible to assign a separate download folder for the torrents loaded via the "watch folder"..

This would be very useful if you want all the files downloaded automatically from rss feeds and the like in one folder (for automatic retrieval using ftp-monitors etc.), and ...