Hi all,
I wrote a shell script:
--------------------------
#!/bin/sh
. /etc/rc.config
. /etc/rc.status
rc_reset
PPPD=/usr/sbin/named
checkproc $PPPD
rc_status -v
rc_exit
exit 0
--------------------------
the script is running on SuSE Linux 8 and works well.
It returns "..done" if process named is running and "..failed" if not.
In PHP i do:
--------------------------
$rueckgabe = exec('/var/www/Intranet/Server_Status/scripte/ssh.sh');
echo $rueckgabe;
if ( $rueckgabe == "..done" ) {
$status = "32CD32";
} else {
$status = "#ff0000";
}
--------------------------
When i run it from my browser i get $rueckgabe = "..failed", but if i run php on the command line with php script.php i get $rueckgabe = "..done".
But it must always be "..done", because the process is running.
Thanks to all who help!
Best regards,
Jan.


