Discussion Locked

Help???

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a shell script on a unix box.
I have operators who I dare not give command line access to, in order for them to kick off the shell script, I would like to be able to
start that shell script via a web page.
I link to the script and it returns the content of the script in text format .
I know it has to be something very simple I have over looked.
HelP?

3 replies

by turtleekh

It sounds like all that is happening is that the browser is trying to open the file - you need to code it to kick off the executable outside the browser.

by jay eckles

You want to write a CGI (this is *exactly* what CGI was created for). It can be a simple Perl script that executes your shell script and returns the output to the browser.

There are hundreds if not thousands of tutorials on the net about how to do this.

Good luck.

Jay

by kenjpete

I'm not sure this is related but I had a similar problem here with a Perl script returning the content in text instead of kicking off the script. I had to change the document type in the HTML of my web page from "text/plain"
to "text/html".

good luck,
Ken

This discussion is closed to new replies.