Page 2 of 2

Re: Fat32 Post Processing Script

Posted: December 1st, 2009, 12:40 pm
by shypike
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).

Re: Fat32 Post Processing Script

Posted: December 1st, 2009, 2:08 pm
by dominicglenn
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!  :)