Solved

How to send perl output to browser?

Posted on 1998-05-02
4
273 Views
Last Modified: 2006-11-17
Is it possible to redirect the output generated by a perl script directly to Netscape browser rather than the default <stdout> MS-DOS screen in Windows 95?  (Without using a server connection)  If so, how do I do it?
0
Comment
Question by:Erick37
  • 2
4 Comments
 
LVL 32

Author Comment

by:Erick37
ID: 1205319
Edited text of question
0
 
LVL 5

Expert Comment

by:icd
ID: 1205320
Go to the Microsoft site and download PWS (Personal Web Server). This puts a 'server' on your W95 machine with a CGI directory. You access it without having to go on-line.

You might also find it on Microsoft refered to as IIS.
0
 

Accepted Solution

by:
obelix earned 100 total points
ID: 1205321
Write a batch file DOIT.BAT containing the following 2 lines:

 \win-appl\perl\bin\perl %1 > test.htm
 \win-appl\netsgold\Program\netscape file:///test.htm

(Change the paths to whatever you need)
Save the batch file to the same directory, where you have your Perl script. From the DOS box you can now start the Perl script by typing the command:

DOIT <script_name>

Good luck,
obelix
0
 
LVL 32

Author Comment

by:Erick37
ID: 1205322
Thanks obelix!
I guess DOS is still not dead, alas... This is a pretty good solution, however I cannot use it to process forms from FrontPage.  I have the Personal Web Server, but I have not been able to figure out how to make it recognize Perl scripts in the cgi-bin directory.  (Icd suggested this approach).
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question