Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <5743835.K3cv73TOv2@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 07 Mar 2014 15:09:24 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 39 NNTP-Posting-Date: 07 Mar 2014 15:09:27 CET NNTP-Posting-Host: f65d52ed.newsspool2.arcor-online.net X-Trace: DXC=Q9KRajjUEMaeoCI^f\Y]EaA9EHlD;3Ycb4Fo<]lROoRa8kF I am 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. Thanks, > > from machine 1: > echo exec('http://machine2/script.sh); exec() executes commands in the shell running on the local machine (where PHP is running), assuming it is allowed (for security reasons, it usually is not). “http://machine2/script.sh” is not a command in any known shell script language. > and > > from machine1: > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, "http://machine2/script.sh"); > curl_setopt($ch, CURLOPT_HEADER, 0); > curl_exec($ch); > curl_close($ch); > ?> Even if a Web server would serve that resource, it would not execute it by default, IOW by default you would receive only the source code of the shell script, not its output. PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from (404-comp.)