Feel free to talk about anything and everything in this board.
tixetsal
Newbie
Posts: 8 Joined: June 7th, 2013, 8:58 pm
Post
by tixetsal » June 7th, 2013, 9:09 pm
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
shypike
Administrator
Posts: 19773 Joined: January 18th, 2008, 12:49 pm
Post
by shypike » June 8th, 2013, 2:47 am
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
Posts: 8 Joined: June 7th, 2013, 8:58 pm
Post
by tixetsal » June 8th, 2013, 9:35 am
OK, watching the backup folder is what I am currently doing. Thank you for the information!
tixetsal
Newbie
Posts: 8 Joined: June 7th, 2013, 8:58 pm
Post
by tixetsal » July 3rd, 2013, 10:46 pm
This thread has become SPAM bait. Do any mods care to close the thread?