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 *