HP3000-L Archives

June 2002, 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:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Thu, 27 Jun 2002 09:33:57 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
> -----Original Message-----
> From: Mark Bixby
>
> A long time ago, I briefly played around with POSIX scripts
> that run the CI as the script intpreter [...] a quick test [...]
>
> INVENT3K:/BIXBY/PUB$ cat citest
> #!/SYS/PUB/CI
>
> showtime
> showvar
> exit

> INVENT3K:/BIXBY/PUB$ ./citest

> MPE/iX CI C.39.06 Copyright (C) Hewlett-Packard 1987.  All
> Rights Reserved.
> [welcome message snipped]
> :./citest
> THU, JUN 27, 2002,  9:05 AM
> TERM = hp2392a
> TZ = PST8PDT
> CJCW = 0

> INVENT3K:/BIXBY/PUB$
>
> Unfortunately since the CI prints the MPE/iX header and the
> welcome message
> before it executes your first command, this approach isn't
> going to work in a
> CGI setting where the first output needs to be HTTP headers.

I seem to recall that the CI accepts certain PARM values (like ,2?) to
suppress the header -- is it possible to "specify" the parm in the lead-in
line of the script?  this might solve the immediate problem [but would fail
if any "option logon" UDC's contained ECHO statements]

> You will probably want to take a more traditional CGI
> approach and create a POSIX shell script as the CGI which does:
>
> #!/bin/sh
> callci "CMDFILE"
>
> Where CMDFILE is your CI command file.

admittedly an additional process, but if it works, why knock it? ;)

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2