running multiple scripts?

Come up with a useful post-processing script? Share it here!
Post Reply
olufs3n
Newbie
Newbie
Posts: 15
Joined: April 5th, 2010, 5:47 pm

running multiple scripts?

Post by olufs3n »

It is possible to have SAB to run multiple post-processing scripts?
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: running multiple scripts?

Post by rascalli »

Per category ?
Or after each other ??
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: running multiple scripts?

Post by Mar2zz »

Create a script that calls other scripts. If you are on linux:

# Running multiple scripts from 1 script
This is also easy. You can do 2 things. First the easiest:
1. Blank textfile, #!/usr/bin/env bash @ top and the following lines in the script:
./path/toscript/one/scriptname1
./path/toscript/two/scriptname2 &&
./and/so/on.
2. Copy all text in all scripts, put the code from script one in function1, script two in function 2 etc. (watch out with variables here by the way).

If you put && after an executescriptcommand the next command will only be started if the previous one was succesful (see example scriptname2).

(more in this topic: http://forums.sabnzbd.org/index.php?PHP ... pic=6203.0)
dougwt
Newbie
Newbie
Posts: 4
Joined: April 13th, 2011, 10:57 am

Re: running multiple scripts?

Post by dougwt »

Can anyone offer a little guidance on how to accomplish this in windows? I've tried using both batch files and python to call multiple scripts but haven't been able to get it to successfully pass the parameters.
JPW
Newbie
Newbie
Posts: 18
Joined: May 21st, 2011, 6:42 am

Re: running multiple scripts?

Post by JPW »

Yea, I'm running in to this same issue as well. I wish to use the sabtosickbeard.exe script as well as run a YAMJ script in Windows each time SABNZBD downloads something. Is this not possible?
J03 8LACK
Full Member
Full Member
Posts: 120
Joined: April 2nd, 2009, 1:33 am

Re: running multiple scripts?

Post by J03 8LACK »

JPW wrote:Yea, I'm running in to this same issue as well. I wish to use the sabtosickbeard.exe script as well as run a YAMJ script in Windows each time SABNZBD downloads something. Is this not possible?
JPW you can run multiple scripts with Sickbeard. All you have to do is put the path to the Extra script in the config.ini manully.
here is a link explaining the process.

http://code.google.com/p/sickbeard/wiki ... edSettings.
dougwt wrote:Can anyone offer a little guidance on how to accomplish this in windows? I've tried using both batch files and python to call multiple scripts but haven't been able to get it to successfully pass the parameters.
Hey dougwt,
I'll try to help but your going to have to give me more info. You are trying to pass parameters which parameter are you talking about and what multiple scripts are you trying to run.

Just trying to help
J03
Post Reply