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:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Thu, 27 Jun 2002 13:07:49 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Mark Bixby wrote:
> 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.

You should be able to put the shell script and CI script in one file as
follows.  I haven't tested this code from Apache, though:

#!/bin/sh
if hpacctcap=hpcidepth
then
  # This is for running it from the shell; it is skipped by CI
  exec callci "$PATH_TRANSLATED"
fi
ENDIF

echo Content-type: text/html
echo
echo !<html!>
echo !<head!>!<title!>test page!</title!>!</head!>
echo It worked !<br!>
echo hpdate = !hpdatef
echo !</html!>

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

ATOM RSS1 RSS2