Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl script to parse xml file 2 111
crawling gofundme 4 126
Convert grep lines to perl 6 37
create a gui in perl 3 87
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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