Page 1 of 1

simple pre-queue user script question

Posted: June 7th, 2013, 9:09 pm
by tixetsal
I would like to use a pre-queue user script to scp a copy of the nzb off to another machine. The script would be something similar to:

Code: Select all

#!/bin/bash
scp <this is the variable that I can't figure out> user@somedomain.info:/mnt/movies/nzbs
Can someone give me a gentle nudge in the right direction? I have tried a couple of variations, but the file doesn't get copied. Should it be?

Code: Select all

#!/bin/bash
scp $1 user@somedomain.info:/mnt/movies/nzbs

Re: simple pre-queue user script question

Posted: June 8th, 2013, 2:47 am
by shypike
It's simply not available as a disk file when the pre-queue script runs.
I think it's simpler to intercept the files when SABnzbd writes them to the nzb-backup folder.
That only happens after the pre-queue script has approved the NZB.

Re: simple pre-queue user script question

Posted: June 8th, 2013, 9:35 am
by tixetsal
OK, watching the backup folder is what I am currently doing. Thank you for the information!

Re: simple pre-queue user script question

Posted: July 3rd, 2013, 10:46 pm
by tixetsal
This thread has become SPAM bait. Do any mods care to close the thread?