Strictly speaking it isn't required, because the OS can tell
what do do based on the "#!/bin/.." string.
In this case it might be beneficial to actually set the flag,
especially if that would read things like .rc files.
Do try, but watch out for side-effects (quoting).
Fat32 Post Processing Script
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
-
dominicglenn
- Newbie

- Posts: 7
- Joined: November 27th, 2009, 5:48 am
Re: Fat32 Post Processing Script
I've managed to get it working correctly as it should.
The first problem was that I was treating the first parameter from SAB as the file that I needed to split, but it's actually the folder containing your files so I now iterate through that and do as I should.
Regarding the other problem, by porting my program to perl, and running it as a perl script it works. I gave up on trying to get the python implementation to work, I was making sure to call the correct python executable every time anyway in my shell script and in the shebang of the python script too, still either using the one inside SAB or some other unknown problem.
Thanks for your help!
The first problem was that I was treating the first parameter from SAB as the file that I needed to split, but it's actually the folder containing your files so I now iterate through that and do as I should.
Regarding the other problem, by porting my program to perl, and running it as a perl script it works. I gave up on trying to get the python implementation to work, I was making sure to call the correct python executable every time anyway in my shell script and in the shebang of the python script too, still either using the one inside SAB or some other unknown problem.
Thanks for your help!
