I need to execute a bash shell script on RHEL 5.2 from a Windows XP or Vista workstation from both an intra-net and the internet. WGet seems to be a logical choice (no firewall considerations) and I can get it installed on all client machines. Using PHP or CGI seems the logical choice for wget to fire.
I have spent 10 hours today trying to work this out. I'm not a developer! Using a variety of PHP functions (system, exec, shell_exec, passthru) is can execute the scripts locally but not via wget. I suspect permissions.
I'm completely lost!
Some examples below...
shell_exec('sudo -u root -S /files/eid.sh < /home/$User/dir/dir/dir/passfile');
system("nohup /var/www/cgi-bin/import/runworks.sh > /dev/null & echo $!;");
/news_root/navicat/./start_navicat /import localhost emeraldisland Contacts