in reply to Execute a perl program from a php web page

One thing I would suggest is changing the permissions on your server so that the web user has the ability to run the designated Perl script directly, without sudo. sudo won't work from a non-terminal-based script unless you use Expect or something similar because, by design, sudo requires the user to enter their own password interactively. sh1tn's solution will work, but unless I'm missing something, it's not a good idea because then any user on the machine can use this "Sudo" program to run any program they want as root, which would be disastrous on most systems.
  • Comment on Re: Execute a perl program from a php web page