Solved

How to send perl output to browser?

Posted on 1998-05-02
4
242 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
Comment Utility
Edited text of question
0
 
LVL 5

Expert Comment

by:icd
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now