Quote:
>Don't you need two new lines after Content-Type?
>--
>:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
>:s Unless explicitly stated to the contrary, nothing in this posting should
>:s be construed as representing my employer's opinions.
Yes, hence the "\n" in the print statement. The print statement produces
one by default and the "\n" adds the second.
#!/usr/bin/ksh
MAN=/usr/ucb/man
RMAN=/usr/local/bin/rman
export DWBHOME=/usr/add-on/dwb
export MANPATH=/usr/local/man:/usr/man:/usr/X11R5/man
print "Content-Type: text/html\n"
exec $MAN - $QUERY_STRING 2>/dev/null | $RMAN -f HTML
Some might prefer to do this with a second print statement...
#!/usr/bin/ksh
MAN=/usr/ucb/man
RMAN=/usr/local/bin/rman
export DWBHOME=/usr/add-on/dwb
export MANPATH=/usr/local/man:/usr/man:/usr/X11R5/man
print "Content-Type: text/html"
print ""
exec $MAN - $QUERY_STRING 2>/dev/null | $RMAN -f HTML
John Ellson
--