Greetings,
I'm trying to execute a shell script which is residing on a webserver on a remote machine with no luck. I have tried the following. It looks
like it runs but I never see the output from the script on machine2. Any suggestions
from machine 1:
echo exec('http://machine2/script.sh);
and
from machine1: <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://machine2/script.sh"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); ?>