Operating System - Tru64 Unix
1753440 Members
4703 Online
108794 Solutions
New Discussion юеВ

TRU64 CGI Script problem generation results

 
ashanabey
Advisor

TRU64 CGI Script problem generation results

Hi

I wrote a simple cgi script using ksh and I finding problem to display below line.This was working in LINUX.HPUX/SUN only deference for me is this server is TRU64.web server is apache.
-----------------------------------------------
sec_info=`cat /march/sysscan/reports/detailed/nitial-1_1 |sed '1,64d'|sed -n '1,73p' |awk '{print "
", $0}'`
-----------------------------------------------
Please see my scripst.

#!/usr/bin/ksh

print "content-type:text/html"
print ""
print ""
sec_info=`cat /march/sysscan/reports/detailed/nitial-1_1 |sed '1,64d'|sed -n '1,73p' |awk '{print "
", $0}'`
date=`date`
sys_name=`hostname`
print ""
print "
$date
"
print "
"
print "

$sys_name

"
print "
ISS SECURITY ANYLASES FOR FILE PERMISSIONS
"
print "$sec_info"
print ""
----------------------------------------------
In the web page I am geting time HR line
hostname and titil.

How do I display my sec_info variable in the script. please help.

Thanks

Ashan


legend the heart and lend the hand
2 REPLIES 2
Ralf Puchner
Honored Contributor

Re: TRU64 CGI Script problem generation results

please post this question to an apache related forum in the internet.
Help() { FirstReadManual(urgently); Go_to_it;; }
Nicolas Dumeige
Esteemed Contributor

Re: TRU64 CGI Script problem generation results

Hello,

First, doesn this script works on the command line ? If so, try to open the web page statically, (# script.ksh > page.html). If not, use set -x to debugg you script.

Cheers

Nicolas

PS : you'll find RFC compliant CGI KSH script at : www.shelldorado.com

All different, all Unix