FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » executing command with shell_exec()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
executing command with shell_exec() [message #169363] Wed, 08 September 2010 16:06 Go to previous message
cerr is currently offline  cerr
Messages: 33
Registered: September 2010
Karma:
Member
Hi There,

I execute a script in my php script with shell_exec():
$cmd = SCRIPT_PATH."PingGPSsource.py ".$_SESSION['prgIP']." ".
$_SESSION['AVLIP'];
logOutput("cmd:".$cmd);
$avlRet=shell_exec($cmd);
logOutput("result:".$avlRet);

Now if i execute the $cmd in a normal shell, it works with no problem
but when i execute it through my php script, $avlRet stays empty. Why
is that and how can I fix this?
Thanks for help and suggestions!

Ron
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Php variables to an email.
Next Topic: Re: Another heredoc question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 03:29:03 GMT 2024

Total time taken to generate the page: 0.05081 seconds