Solved

SHELL SCRIPT AS CGI

Posted on 2000-04-01
2
273 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

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 provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

679 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