Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SHELL SCRIPT AS CGI

Posted on 2000-04-01
2
270 Views
Last Modified: 2013-12-25
hi friends..
       i am using tacacs program for using accounting purpose.. in order to check time consumed by each users, therre is command  ./taclast -t userid   .   But i have a plan to give this through web.   i know shell programming.. But i don't know how to call the shell script from the html . how to generate the html output  from shell script.

i am using unixware 2.0.1 .

if any body acn give an example how to use shell script as cgi.

U will give his user-id through web.. i have to get his user-id and pass this to  ./taclast -t userid . and trasfer the output to the DHTML.

i am new to section..



 
0
Comment
Question by:mon1
2 Comments
 
LVL 8

Accepted Solution

by:
jhurst earned 20 total points
ID: 2678257
I know nothing about taccs but can tell you that I have created many shell script cgi scripts:  For example:

#!/bin/sh
echo Content-type: text/html
echo
echo \<html\>
echo \<body\>
echo Hello world
echo \<\/body\>
echo \<\/html\>
exit;
0
 

Author Comment

by:mon1
ID: 2679665
that is working fine.. but i want to know one more thing. if the user entering some data through form. how can i refer that data in my shell script.

0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question