Hey guys i try to run a post process script with php cli. the script runs fine in CLI mode, but if the script runs from sabnzbd it only opens the script in text editor. I link *.sh with text editor for editing, but what need i change to run it as script. In sh script is this written:
#!c:\xampp\php\php.exe
# $1 (source path) is provided by sabnzbd+ upon execution
c:\xampp\php\php.exe -f "c:/xampp/htdocs\all_serverapps_menu\serien_updater\move_episode.php" -- %1
Hope you can help
Run SH Script under Windows Problem
Re: Run SH Script under Windows Problem
It's a bash script. You need something like cygwin for it to run on windows. when you have installed cygwin you can make a script that calls cygwin with your .sh file. see also my topic MKV DTS2AC3 autoconvert script for an example how to call your .sh script from another script.