Run SH Script under Windows Problem

Come up with a useful post-processing script? Share it here!
Post Reply
skycryer
Newbie
Newbie
Posts: 5
Joined: June 22nd, 2010, 7:34 am

Run SH Script under Windows Problem

Post by skycryer »

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
thachac
Newbie
Newbie
Posts: 2
Joined: August 20th, 2010, 3:20 pm
Location: Netherlands

Re: Run SH Script under Windows Problem

Post by thachac »

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.
Post Reply