fotofx;10993133 wrote:So I would just change to the proper directory and do:
php5 scriptname.php
You wouldn't even need to change directories (assuming you supplied an absolute file path, of course). Also, that command would only work if:
The PHP CLI binary (or a link to it) was given the name 'php5', and
The binary (or a link to it) can be found in a directory listed in the PATH environment variable
However, note that your terminal would hang at that point since it's waiting for the PHP program to finish. To fork it into the background, add an '&' at the end of the command.
fotofx;10993133 wrote:And it would continue running in the background like a service in Windows???
Yes and no, depending upon whether you view a "service" being the same thing as a program that has been forked into the background. (To me, the two are quite different.)
fotofx;10993135 wrote:Tried this... Could not get it to work with OpenSuSE
Considering that it looks like what dagon linked to is nothing but a pretty wrapper/interface for the Process Control functions in PHP (see: [man]PCNTL[/man]), I'd say the problem has nothing to do with openSUSE.