Solved

ActiveState Perl (PerlIS) and Fork() on Windows 2000

Posted on 2004-08-21
3
366 Views
Last Modified: 2008-03-10
I am trying to implement a Perl script that uses a call to the fork() function in Perl using ActiveState ActivePerl 5.8.4's PerlIS.exe.  I have read many posts saying that fork() is not often implemented in Windows perl implementations, but after looking at the ActiveState website, it appears that they have created a fork() function to emulate the unix function.  

However, any time I run the script I get the error:

fork() is not implemented in PerlIS

So, is there a way I can use this function on windows?  Does the ActiveState perl program allow the fork() function and can i configure IIS to use this instead of PerlIS?  Or does anyone have a recommendation for another perl implementation to use on windows?  I MUST use Windows and MUST use the fork function.
0
Comment
Question by:rawdrib
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
mishagale earned 500 total points
ID: 11859922
I've tried with activePerl v5.6.1, and fork() seems just fine. Maybe it is only unimplemented in Perl for ISAPI. Try configuring IIS to use perl.exe as a CGI program, rather than PerlIS. Note that this may adversly affect the performance of your scripts. You can get info on configuring this from the ActivePerl docs, somewhere like file://localhost/C:/Perl/html/faq/Windows/ActivePerl-Winfaq6.html
(where "C:/Perl/" is the path where ActivePerl is installed.)
0
 
LVL 2

Expert Comment

by:mishagale
ID: 11859928
Also, you say that you MUST use windows, but do you have to use IIS? If you still have trouble, you might try the windows build of Apache, which will use CGI perl or mod_perl quite happily
0
 

Author Comment

by:rawdrib
ID: 11860207
I forgot the "%s" %s when i tried to configure the application to use Perl instead of PerlIS.  The application works fine with Perl.exe. Thanks!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

13 Experts available now in Live!

Get 1:1 Help Now