[Ilugc] Running Shell scripts through Apache

  • From: linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
  • Date: Wed May 24 11:26:23 2006

P Karthick wrote:

Hi All,
Is there any way to run Bash shell scripts from a browser passed through 
Apache.
This is exactly like executing a perl script through mod_perl module.

E.g.
http://myhost/dir1/myscript.sh

If we hit the link,the script should be executed and I have written the 
script in a way that it outputs a HTML page, that should be displayed in the 
browser.

You're exposing yourself to a ton of rootkits

What is stopping you from doing what you need to do with perl or php?

Other related posts: