I had a similar situation, didn't really like Win32::Process, fork didn't work, I don't think it does outside of Unix, either one seems complicated to me. Instead I just wrote the data to a queue in a file and had another 'background' process poll the file every 10 seconds to see if there was a job to do, wasn't complicated that way.
----- Original Message -----
Sent: Friday, November 30, 2001 4:28 PM
Subject: Re: background process on windows 2000

sunil matte wrote:

> hi
>    i am trying to start a detached process in perl. I
> am building a web based application,where a user
> queries the database on my server.the query triggers
> an agent that updates the database. i want the agent
> to be a back ground process so that the user should
> not be left waiting for it to complete.can some one
> suggest how i can achieve this. i also need to send
> the query entered by the user to the back ground
> process.it would be helpfull if any one of you guys
> provide a sample code that would do the job or help me
> find it...


Look at Win32::Process (Create function).  If you have trouble
figuring it out, repost with a failing snippet.

--
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to