Solved

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

Posted on 2004-08-21
3
374 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
[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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
Six Sigma Control Plans

696 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