Nothing is getting displayed on browser while using open statement


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Nothing is getting displayed on browser while using open statement
# 8  
Old 06-22-2011
It's annoying that even redirecting STDERR doesn't get you the error messages! It's probably trying to tell you what you're doing wrong but the message floats off into hyperspace...

I suspect it's not actually able to open the file due to either some difference in path or some difference in permissions. The perl scripts may be getting run under a different user than you. Try putting your datafile under something like C:\Documents and Settings\All Users\Documents\ where permissions are more relaxed. Check the logs for your webserver, see if it's logging the error output anywhere.
# 9  
Old 06-22-2011
How's the output look running from the command prompt?

Maybe try added a newline at the end. Also, I know \n\n works but I believe \r\n\r\n to be more standard and was required for me on one webserver (though my CGI was in bash).

First Print
Code:
print "Content-type: text/html\r\n\r\n";

Last print
Code:
print "</HTML>\n"

Any difference?
# 10  
Old 06-22-2011
Quote:
Originally Posted by neutronscott
How's the output look running from the command prompt?

Maybe try added a newline at the end.
Considering this is Windows it's running on, I doubt carriage returns are particularly lacking.
# 11  
Old 06-22-2011
CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Its givimg error now

On command prompt the out put is as follows

Code:
jamoi</TH><TH
 SIZE=2>zope<
FACE =ARIAL S
></BODY></HTM


Last edited by Franklin52; 06-23-2011 at 03:40 AM.. Reason: Please use code tags for data and code samples
# 12  
Old 06-22-2011
What webserver is this? Maybe

Code:
print "Status: 200 OK\nContent-type: text/html\n\n";

or is it "HTTP 200 OK" ? Smilie Haven't needed to use this for awhile

Edit: or is it http://support.microsoft.com/default...b;EN-US;884764
# 13  
Old 06-22-2011
Now again blank page is displayed while on cmd line
Code:
<HTML>
<HEAD>
<TITLE>Local User Accounts</TITLE>
</HEAD>
<BODY>
<TABLE BORDER=2>
<TR><TH>User ID</TH><TH>Hosts</TH></TR>
<TR><TH>aabano</TH><TH>nis1m3</TH></TR>
<TR><TH>aabukhat</TH><TH>adm7m3 nis1m3</TH></TR>
<TR><TH>aaditi</TH><TH>nis1m3</TH></TR>
<TR><TH>aalekova</TH><TH>dwdev1w88m7</TH></TR>
<TR><TH>aambani</TH><TH>nis1m3</TH></TR>
</TABLE>
</BODY>
</HTML>

is displayed

Last edited by Franklin52; 06-23-2011 at 03:40 AM.. Reason: Please use code tags
# 14  
Old 06-22-2011
Quote:
Originally Posted by miteshpant
Now again blank page is displayed while on cmd line ...
After doing ...? and please use code tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

0403-016 Cannot find or open the file in If Statement

Hi, I am comparing the number of records in the .bad record from sql loader, if it is higher than the number passed in as an argument, the program should exit. However, I constantly receive the error " 0403-016 Cannot find or open the file." on the line with the if statement "elif ;". The code... (3 Replies)
Discussion started by: MIA651
3 Replies

2. Shell Programming and Scripting

Convert Update statement into Insert statement in UNIX using awk, sed....

Hi folks, I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex. I have a bunch of update statements with all columns in a file which I need to convert into insert statements. UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies

3. Solaris

Can't open netscape web-browser

I am working in solaris 9 and i want to work with web-browser(netscape). but when I am openning it,it shows the message -- An error occurred reading the startup configuration file.Please contact ur administrator./.netscape/preferences.js,line 66:unterminated string literal.t,127.0.0.1 please... (3 Replies)
Discussion started by: smartgupta
3 Replies

4. Shell Programming and Scripting

Password is getting displayed

My shell script which runs on solaris has an execution in it. Contents of shell script BEGIN : Executable_filename username/password@DBinstance parameter2 parameter3 Contents of shell script END : When i launch the shell script, it connects to database to gets few details.. In the... (3 Replies)
Discussion started by: shafi2all
3 Replies

5. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

6. UNIX for Advanced & Expert Users

script to open the specified url in a browser from a text file

Hi All, here i am struc (6 Replies)
Discussion started by: gsp
6 Replies

7. Solaris

How to open Browser

Hi, I am connecting to the remote machine via Xmanger. How can i ope browser from the termilnal. I can open gui from my terminal. (xclock works) Just wondering how to open the browser ? (2 Replies)
Discussion started by: bang_dba
2 Replies

8. Solaris

hostname not displayed

Hi, I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is... (7 Replies)
Discussion started by: Ronny
7 Replies
Login or Register to Ask a Question