Subject: | |
From: | |
Reply To: | |
Date: | Thu, 27 Jun 2002 09:09:52 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
A long time ago, I briefly played around with POSIX scripts that run the CI as
the script intpreter, and achieved somewhat funky results.
However, a quick test of the following on invent3k seemed to work:
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.
************************************************************************
* *
* Use of this system requires express written permission from the *
* Hewlett-Packard Company in accordance with all terms and conditions *
* specified at http://jazz.external.hp.com/pads/agreement-mpe.html. *
* *
* All other usage is forbidden, and any such unauthorized users MUST *
* LOG OFF IMMEDIATELY. *
* *
* IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT *
* *
* This system is now running 7.0 Express 1. Please report any issues *
* regarding the recent update to [log in to unmask] Thanks!!! *
* *
************************************************************************
:./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.
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.
- Mark B.
Ronald R Horner wrote:
> Does any one have samples of CI scripts that run as CGI for Apache? If so,
> can I see them.
--
[log in to unmask]
Remainder of .sig suppressed to conserve expensive California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|