Jump to content

Another exec/system problem


dbo

Recommended Posts

Running PHP 5 on WAMP (windows xp).

 

I've got a perl script that does calls a webservice. I'm trying to call this perl script via php exec command. I'm able to access the script by arguments that are being passed in on the command line are not being accepted.

 

I've done a system->run->services.msc and allowed the wampapache user to "interact with desktop." This was suggested by a user on php.net.

 

Here's the current code:

 

exec("c:/wamp/www/Model/Webservices/sierra-perl-v0.9.5/call_sierra.pl 1 $id");

 

I've tried several variations of this including escaped quotes around the script name, calling it via the perl interpreter such as:

 

perl c:/wamp/www.... etc

 

I've placed an exec "pause" in my perl script and it reveals that the script is in fact being called but when I do a $len = @ARGV; it says that 0 command line arguments have been passed in.

 

Any suggestions? Any and all help is appreciated.

Link to comment
https://forums.phpfreaks.com/topic/50044-another-execsystem-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.