Solved

SHELL SCRIPT AS CGI

Posted on 2000-04-01
2
287 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
[X]
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
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

636 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