HP3000-L Archives

September 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Andreas Schmidt <[log in to unmask]>
Reply To:
Date:
Wed, 23 Sep 1998 17:52:37 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (96 lines)
David,

I like the Posix possibilities so that I use this HP3000 feature extensively to
access report files on the 3k.
A small example stored in /WEB/CGI:
#!/bin/sh

echo "Content-type: text/html\n"

# QUERY_STRING contains: report=.1.&month=.2.
# The first awk splits into [1]report, [2].1.&month, [3].2.
REPORT_month=`echo $QUERY_STRING|awk '{split($1,arr,"=");print arr[2]}'`

# This awk splits into the same but uses arr[3]
MONTH=`echo $QUERY_STRING|awk '{split($1,arr,"=");print arr[3]}'`

# This awk splits into .1. and month
REPORT=`echo $REPORT_month|awk '{split($1,arr,"&");print arr[1]}'`

echo "<HTML><HEAD><TITLE>Applstat Report</TITLE></HEAD>"
echo "<BODY background="../matchy.gif" bgcolor="#ffffff">"
echo "<H1>Here the requested report <I>$REPORT</I> of <I>$MONTH</I>:</H1>"
echo "<H3>You may stop the transfer whenever you want ... it may be a \
BIIIG file ...</H3>"
echo "<B><HR SIZE=1><PRE>"

cat /APPLSTAT/RPRT$MONTH/$REPORT

(24/851) Continue?
echo " "
echo "</B><HR SIZE=1>"
echo "</PRE></BODY></HTML>"

and you can easily see that it bases on a HTML document with a
<FORM ACTION="http://xenbh2.bhg.dupont.com/cgi-bin/applstat" METHOD="GET">
tag and some input fields for Reportname and Month.
I could send you this and some other examples for this easy one your boss
requested.

Additonally we have QUERY reports out of MAESTRO which ends up in the WEB as well
...
These CGIs are a little bit more complicated but contains a line like this
callci "RUN QUERY.PUB.SYS;STDIN=$FILE.TMP.WEB" > /tmp/null
and the STDIN bases on the parameters the web user has given before (e.g. Jobname
or account).
Output is in most of the cases a formatted web table but also a simple ASCII
report.

Hope that give you some ideas how to achieve ... otherwise your boss may come here
 to see ;-)

Best regards, Andreas Schmidt, CSC, Germany





[log in to unmask] on 09/23/98 05:09:40 PM

Please respond to [log in to unmask]

To:   [log in to unmask]
cc:    (bcc: Andreas Schmidt/HI/CSC)
Subject:  HP3000 as a WWW server...




Hello you kind helpful people out there.
Here's the situation. I realise that the HP3000 can act as a WEB server
(Jazz and all that), and I'm sure that this subject has been aired
plenty on these pages over the last months. However I only joined the
list last week.
My boss (a non-techie) has just asked me if I could
"knock a quick demonstration together of the HP3000 Web capabilities,
perhaps showing how reports can be accessed".
Now, as I said, I am perfectly aware the HP3000 can do all these things
(I stupidly said as much to my boss only a few weeks ago - I never
learn!). Could anyone please guide me as to where to begin, what
software (preferably free) do I need, and where can I obtain it. I'm not
a "C" programmer and I don't really like Pascal - my background is good
old Cobol together with a good understanding of MPE, Image etc. We have
several HP3000's all running 5.5.4, and we use Internet Explorer for Web
access, although our Intranet server is NT based.
All help / suggestions gratefully received.
Many thanks
David Rutherford.


__________________________________________________________________
                Confidentiality Notice
This message may contain privileged and confidential information. If you think,
for any reason, that this message may have been addressed to you in error, you
must not disseminate, copy or take any action in reliance on it, and we would ask
you to notify us immediately by return email to "[log in to unmask]".

ATOM RSS1 RSS2