Solved

SHELL SCRIPT AS CGI

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now