![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| html withing shell scripts,how?? | divzz | Shell Programming and Scripting | 6 | 05-28-2008 05:11 AM |
| Html web page to Unix Connectivity | abhilashnair | UNIX and Linux Applications | 1 | 03-06-2008 06:13 AM |
| Invoking shell script from html/jsp page | bubeshj | Shell Programming and Scripting | 2 | 06-28-2006 10:53 AM |
| linking unix generated text file to html page | alexd | Shell Programming and Scripting | 1 | 11-13-2002 08:21 AM |
| Unix Manual (man-page) pages in HTML | killerserv | News, Links, Events and Announcements | 1 | 06-25-2002 09:05 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I need (have been asked/order/instructed) to migrate the access of a number of ksh scripts into a html/web page environment. Currently access is with the user logging onto a unix box and accessing the scripts that way. The users are not unix people so I have restricted the access solely to the scripts they require, but access should be stopped completely. I have produced very simple web interfaces before that would link off to documents and procedures but nothing that would link off and execute a unix script. Having searched this board and others I can't seem to find anything that will help point me in the correct direction. Can you access unix based scripts using simple html or does this require php or cgi (not really sure what these are or how the code may look)? if there are any suggestions or thoughts (base on this thread Many thanks, Neil |
| Forum Sponsor | ||
|
|
|
||||
|
In order to achieve this, I'd say that you'll need to have a web server running. Apache will allow you to use shell scripts via CGI, so this may be the easiest choice.
You could also use Server Side Includes (see here) but again you'd need to have a webserver running and create the correct .htaccess file for the SSI to work. You could have SSI such as Code:
<!--#exec cmd="/path/to/my/script args" --> Cheers ZB Last edited by zazzybob; 08-09-2004 at 01:41 PM. |
|
|||
|
RTM,
How did you get the javascript working within your cgi script? I've attempted to incorporated a simple a timeout for the page via javascript and it doesn't seem to recognize it. Is there an order to where the javascript should be placed within the cgi script? |
|||
| Google UNIX.COM |