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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server side include to redirect standard out from a shell command??

Status
Not open for further replies.

RobJordan

MIS
Apr 3, 2001
296
US
I would like to create an html document
that calls a shell script and lists
the standard output in the browser window.
I am not sure of the syntax and/or file naming
standards to do this task.

sample shell script:
#!/usr/bin/ksh
ls -l #list directory contents

Thank you,

Robert

Robert G. Jordan

Robert@JORDAN2000.com
Unix Sys Admin
Chicago, Illinois U.S.A.
[lightsaber]
 
Sounds exactly like PHP or ASP, to me. It could also easily be done with a little simple CGI. Due to security concerns, a simple server-side include is not going to give you access to system calls. 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
I don't know why a server-side include wouldn't give you access to system calls. You can so an SSI exec command to call a perl program which contains system calls, so the same thing should hold true for shell programs. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top