Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a Shell Script from a Web Page

Status
Not open for further replies.

moonoo

Programmer
May 17, 2000
62
US
Hi ,
I have a requirement like this . On a simple web page on the user clicking the Ok Button I want to run a perticuar script( like csh or perl script) . What is the simplest way to do it . Any help with example will be appriciated.
Regards
 
Where do you think you want to run the script - on the client or on the server ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Code:
Process p = Runtime.getRuntime().exec("/usr/bin/sh myshellscript.sh");
p.waitFor();

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top