Solved

How to send perl output to browser?

Posted on 1998-05-02
4
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…

734 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