Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

939 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

6 Experts available now in Live!

Get 1:1 Help Now