[LINUX]Running multiple PP scripts

Come up with a useful post-processing script? Share it here!
Post Reply
synci
Newbie
Newbie
Posts: 29
Joined: February 10th, 2015, 2:19 pm

[LINUX]Running multiple PP scripts

Post by synci »

Hey guys,

its sanders fault that i have 2 new pp scripts :) (Thanks again!)
I need to run 3 python pp scripts after my download completed.

Found a thread here but i think its only for bash scripts ?

That here doesnt work :)

Code: Select all

#!/usr/bin/env bash
./SAB-SafeRename.py &&
./mkv-process-audio-and-subs.py &&
./nzbToSickBeard.py &&
Thanks !
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: [LINUX]Running multiple PP scripts

Post by sander »

It doesn't work ... but what does work?

I hate shell scripting, but here is a untested try:

Code: Select all

#!/bin/sh
echo "Step 1"
/<fullpath-to-SAB-scripting-dir>/SAB-SafeRename.py $1 $2 $3 $4 $5 $5 $6 $7 $8
echo "Step 2" 
/<fullpath-to-SAB-scripting-dir>/mkv-process-audio-and-subs.py $1 $2 $3 $4 $5 $5 $6 $7 $8
echo "Step 3"
/<fullpath-to-SAB-scripting-dir>/nzbToSickBeard.py $1 $2 $3 $4 $5 $5 $6 $7 $8
echo "Done"
Maybe you can test this? I can test later on.
synci
Newbie
Newbie
Posts: 29
Joined: February 10th, 2015, 2:19 pm

Re: [LINUX]Running multiple PP scripts

Post by synci »

And we have a winner :)
Works !!!
Thank you so much !
Post Reply