run script only on destination folder?

Get help, report and discuss bugs.
Post Reply
garyleecn
Posts: 21
Joined: 04 Sep 2015, 20:35

run script only on destination folder?

Post by garyleecn » 23 Jul 2017, 00:57

is it possible to pass the destination to the script?
like I have task 1,2,3...
and they got downloaded each to
/download/1/
/download/2/
/download/3/

so what do I write in my post script to let the script only run on /download/1/ when task 1 is finished, and run on /download/2/ when task 2 is finished?

I used to run script just on /download/, but with direct unpack introduced, you can see how it may cause problems.

thanks in advance.


btw, my current script is a sh script, as following

Code: Select all

filebot -script dev:amc --output /volume1/Video/  --log-file /volume1/Download/NZBGet/FileBot.log --action move --conflict override -non-strict /volume1/Download/Completed/ 
rm -r /volume1/Download/Completed/
exit 93;
where /volume1/Download/Completed/ is the 'root folder' for download destination. and now what should I change it to? it uses JAVA and I've tried to change the /volume1/Download/Completed/ to NZBPP_DIRECTORY, but it just say the directory does not exist.

hugbug
Developer & Admin
Posts: 6746
Joined: 09 Sep 2008, 11:58
Location: Germany (NRW)

Re: run script only on destination folder?

Post by hugbug » 23 Jul 2017, 01:39

Try $NZBPP_DIRECTORY.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests