Hey GUys i have a php script i wish to start from sabnzbd but how?
I use the php cli someone posted here for me but how can i start this from sabnzbd?
Please help i love this app and the possibilities with scripts.
start php script from sabnzbd
Re: start php script from sabnzbd
Pretty simple, make a shell script like this:
Name it something.sh and chmod +x it then add it to the post-processing folder and choose it for whatever the script should be post processing.
This of course assumes you are on a Linux based OS for the sab server.
For windows, you would just create a batch script and call the php script:
And use that for the post-processing script for the items it is to post-process.
Code: Select all
#!/usr/bin/env php
<?php
// processing code here
// $argv will contain an array with arguments like normal
?>
This of course assumes you are on a Linux based OS for the sab server.
For windows, you would just create a batch script and call the php script:
Code: Select all
php -f C:\location\of\script.php
Last edited by premiso on November 14th, 2010, 12:54 pm, edited 1 time in total.