platform independent fork

From: Nath (DON'T_SEND_ME_at_TRIPE_TO_MY_IN.BOX)
Date: 07/18/04

  • Next message: Krishna News Account: "Re: platform independent fork"
    Date: Sun, 18 Jul 2004 16:23:26 +0100
    
    

    I am trying to write a cgi script that executes a piece of perl code
    (including a system call that may take several minutes to complete the
    executed task). I would like to display a message with a link to retrieve
    the results of a system call to the web browser while the remaining perl
    code is executed (inc the system calls) so the browser doesn't timeout. I
    understand that this can be done on a linux machine using fork (does anyone
    have a snippet of code as an example?), but i would also like to make the
    scripts platform independent (or at least windows compatable) so the website
    can be run from a windows or linux machine....how could i do something
    similar for a windows machine (does anyone have any example code)?

    Any help is appeciated as i have not done any work regarding forking
    processes before!

    Thanks
    Nathan


  • Next message: Krishna News Account: "Re: platform independent fork"

    Relevant Pages

    • Re: Am a newbie ....
      ... the perl code should invoke the executable. ... which executes an external program and returns its ... I think these may be emulated on Windows by ActiveState's perl, and there's also a Win32::Process module that uses Windows API's for process spawning. ...
      (perl.beginners)
    • Re: Capture text output of win app
      ... I have a custom, non-interactive, windows FTP application that, ... I used the following code to try to capture the output but "strOutput" ... Try the script below. ... I think what is happening is that after the Exec method line executes, ...
      (microsoft.public.scripting.vbscript)
    • Re: Problem with multithreaded C# app on Windows CE
      ... Unlike the .NET Compact Framework ... Framework 2.0 provides Control.BeginInvoke that asynchronously executes ... supported and I don't see any problems with them, but BeginInvoke isn't. ... "Safe, Simple Multithreading in Windows Forms, Part 3", January ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Problem with multithreaded C# app on Windows CE
      ... For .NET CF 2.0, BeginInvoke is supported. ... Unlike the .NET Compact Framework ... Framework 2.0 provides Control.BeginInvoke that asynchronously executes ... "Safe, Simple Multithreading in Windows Forms, Part 3", January ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Privilege-escalation attacks on NT-based Windows are unfixable
      ... so a user can get an Outlook worm or whatever that executes in the ... Windows mainframe my arze. ... they always refer to any bugs as "undocumented features" ... Regards, ...
      (comp.security.misc)