simple pre-queue user script question

Feel free to talk about anything and everything in this board.
Locked
tixetsal
Newbie
Newbie
Posts: 8
Joined: June 7th, 2013, 8:58 pm

simple pre-queue user script question

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: simple pre-queue user script question

Post 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.
tixetsal
Newbie
Newbie
Posts: 8
Joined: June 7th, 2013, 8:58 pm

Re: simple pre-queue user script question

Post by tixetsal »

OK, watching the backup folder is what I am currently doing. Thank you for the information!
tixetsal
Newbie
Newbie
Posts: 8
Joined: June 7th, 2013, 8:58 pm

Re: simple pre-queue user script question

Post by tixetsal »

This thread has become SPAM bait. Do any mods care to close the thread?
Locked