Solved

How to send perl output to browser?

Posted on 1998-05-02
4
267 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending email via Perl on Windows 3 165
perl script to count sepecial characters in a file 7 146
File Find regex problem 4 62
Control Number of Log Files -Perl 7 74
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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