- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- TRU64 CGI Script problem generation results
Operating System - Tru64 Unix
1753440
Members
4703
Online
108794
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2004 05:56 PM
тАО05-12-2004 05:56 PM
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 "
print "
"
print ""
print "
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 01:18 AM
тАО05-13-2004 01:18 AM
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;; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 01:22 AM
тАО05-13-2004 01:22 AM
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
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP