| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jun 2003
16 posts
Gave thanks: 0
Thanked 0 times
|
Hi there, I am trying to use the exec command in php to run a perl script that generates random content. The script is 'Nonsense' (http://nonsense.sourceforge.net) It works fine on my local server, where all i need to do is the following:
Code:
$output = exec("nonsense/nonsense Person");
This simply returns an empty string on the surpass server. I have tested nonsense itself by running it as cgi directly via the url, ie (http://zaphoyd.com/cgi-bin/nonsense/nonsense) and that works fine. I can exec other stuff like ls -l or pwd or other basic commands. Any ideas? Would Linux handle the exec command differently than the Mac OS X/FreeBSD server I use here? Thanks a bunch -Peter
__________________
-Peter Thorson Zaphoyd Graphics and Software www.zaphoyd.com [server vega] |
|
|
|
|
#2 (permalink) | |
|
Registered User
Seasoned Poster
Joined in Jul 2003
Lives in Research Triangle Park, NC / Blacksburg, VA
57 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
If that doesn't work, try calling the perl interpreter directly through an exec. Like: $c = exec('/usr/bin/perl /home/yourname/public_html/nonsense/nonsense Person');
__________________
"I tried to go to Target but I missed" ~Mitch |
|
|
|