473,660 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help on cgi/perl programs to port, view and edit reports

rk
Hi,

I'm trying to write a cgi/perl programs to post a report like the
following format in which the the user has to feed the values(nos) in
the boxes under

% Done Qual Rel. Stab P1 p2 P3....

and boxes under

good news
badnews
Hotbugs
......
.....

I could not able to provide the boxes here.

and finally he/she can hit the submit button to report the report to
web page.

Once the values are submitted, then based on the total bugs and their
priority, the view reports should show the colors as mentioned in the
Legend.

I tried to wrote the scripts to test the login to page and submit the
reports. I need to some help to finish the programs. Can some one
please help me or send me some sample scripts. Basically i need to
write scripts like Login, makeReport, viewReport, editReport.

o EXECUTIVE SUMMARY: (Test status based on <S/W> release: Build)
o =============== =====
o
-------------------------------------------------------------------------------
o Test % Rel. ( OPEN BUGS--integrated )
o Area plan Done Qual Stab this week Overall total
o
-------------------------------------------------------------------------------
o P1 - P2 - P3 - rfe P1 - P2 - P3 -
rfe Total
o -- -- -- --- -- -- --
--- --

o Install
o Agent
o Console
o Server

Legend:
Rel/Stab Key: Green - on plan Qual Key: Green - no P3, P2,
or P1
Yellow - behind but able Yellow - P2 or P3
bugs
to recover Red - P1 bugs
Red - too far behind schedule to
recover
o
-------------------------------------------------------------------------------

o Good News:

o Bad News:

o Test Stoppers:

o Hot Bugs:

o Issues:

|SUBMIT REPORT| |CLEAR REPORT|


makeReport.sh
-------------
#!/bin/sh

echo Content-type: text/html
echo
echo "<HTML>"
echo "<H2>Make Report not done...</H2>"
date=`date`
echo "<PRE>$date </PRE>"
echo "</P><P><A HREF="../makeReport.html ">Go Back</A></P>"
echo "</BODY></HTML>"
~
~

test.cgi
-------
#!/bin/sh

echo Content-type: text/html
echo
echo "<HTML>"
echo "<BODY>"
#!/bin/sh

echo Content-type: text/html
echo
echo "<HTML>"
echo "<BODY>"
echo "<H2>Are you there?</H2>"

echo "<PRE>1) ${WWW_theName}</PRE>"
echo "<PRE>2) ${theName}</PRE>"
echo "<PRE>3) ${1}</PRE>"
echo "<P>Content file: $CONTENT_FILE<P >"
echo "<P>Content length: $CONTENT_LENGTH <P>"
echo "<P>Path Info: $PATH_INFO<P>"
echo "<P>Path translated: $PATH_TRANSLATE D<P>"
echo "<P>Query string: $QUERY_STRING<P >"
echo "<P>Server software:$SERVE R_SOFTWARE<P>"
echo "<P>Server name: $SERVER_NAME<P> "
echo "<P>Server port: $SERVER_PORT<P> "
echo "<P>Content type: $CONTENT_TYPE<P >"
echo "<P>Request method: $REQUEST_METHOD <P>"
echo "<P>Request line: $REQUEST_LINE<P >"
echo "<P>Gateway interface: $GATEWAY_INTERF ACE<P>"
echo "<P>Script name: $SCRIPT_NAME<P> "
echo "<P>"
if [ ! -z "$WWW_theNa me" ]; then
echo "$WWW_theNa me is logged in..."
else
echo "$WWW_theNa me isn't logged in..."
fi

Thanks in advance
rm
Jul 19 '05 #1
1 2051
rk wrote:
I'm trying to write a cgi/perl programs


Both of your programs below are shell scripts and they have nothing to do
with Perl whatsoever.
However, even CLP would have been a newsgroup that deals with shell scripts
(which it doesn't), then still your question is about CGI and HTML forms.
Neither of which has anything to do with any particular programming
language.
You will be better of asking in a NG, that actually deals with CGI like e.g.
comp.authoring. infosystems.cgi or so.

jue
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2848
by: Tomislav Lepusic | last post by:
Hello, I don't know if this is the right group (I'm more in Perl, know nothing about Python), so if you can help me thanks, if not, sorry to bother you. I'm working on my student project and I'm totally lost and don't have any idea how to continue, and the deadline is 1.9.2004. Please help, 'couse i'm loosing myself in this XML/SOAP/RPC/WSDL things......
0
6441
by: Danny Jensen | last post by:
I need to test if certain processes on a unix box were running. I wanted to use whatsup gold to do the testing. First I needed to go to the whatsup configure>monitors & services menu to add this tcp/ip port 1555 service with the folowing lines: Send=psef /dj/myco/rf.monitor\r\n Expect=~1 the psef above is a command that the unix server executes. The unix box communicates back a 1 if the test is successful and a 0 if it is
3
15277
by: FLOTServer | last post by:
Here's my problem: I run a gameserver that runs the game "Medal of Honor". On the game server is log file which contains all of the data from the players for that day (kills, deaths, etc...). I have a perl script that runs on my webserver, which is supposed to login to the gameserver and download the log. The problem is that when it gets to the part where it needs to download the file, it aborts. The gameserver FTP requires I use port 24...
3
3278
by: Mark | last post by:
Hello, I am new to PERL and I want to do a simple function (in LINUX): find all files that have the extension pseudo.pdf and put the file names in a file; parse the file and change all file names current filename plus date: pseudo+date+.pdf
1
2763
by: Melissa Kay Beeline | last post by:
OK, here's the sitch : we have an access control system at work that registers ever entry/exit of every employee. I recently made some queries in Access so the ppl in HR could make reports (who came in late, how many ppl were undertimed, etc etc) Now they are not satisfied (of course) and they want a list of ABSENT employees. I have the following tables : PERSONNEL CARD
3
1432
by: pc | last post by:
hi all, I have been blessed with the task of writing a web based database representing the state of our globally installed isam databases. there are basically four steps in setting this up: 1) schedule isam file reports to run at all remote sites. this generates a text file describing the current state of tables (files) in the database.
22
3255
by: Amali | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of seats as 0 and the flight no. is also repeating. If any can tell why is this please help me. #include<stdio.h> #include<ctype.h> #include<conio.h>
6
4044
by: djjohnst | last post by:
I am creating a program that will list program times for people who visit our website. Users can login create, edit, delete a program. These dump into a database. The ASP webpage then reads from the database and posts these programs for people to view (program type, date, time, etc...). I am having trouble creating an edit option. When bring up the edit page i want it to read the database and dynamically create a table that has a button...
2
3800
by: sbettadpur | last post by:
hello, I am trying to install the Text::NLP::Stanford::EntityExtract perl module on windows xp. But its not installing properly... can anybody tell solution for the above problem. But its installing successfully on Linux machine. The following error i was getting while installing.......
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8754
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.