in reply to Re: starting a process in the background, with a twist
in thread starting a process in the background, with a twist

Yes, I can download the tar.gzipped modules from CPAN and install them manually, but looking at the possibly relevant modules in the FAQ (Proc::Background, Win32::Process etc.) I saw that each of them has non-trivial dependencies.

Anyway, your suggestion works (except that I needed kill 9 instead of kill 2). You are right that there are complications, for example you were right about the VM, there is one involved in the problem :), but for this specific case, it looks like that your solution will be adequate.

Thanks!

PS. I propose that this method (system 1, "program_name") be added to the relevant entry in perlfaq8, because it's simple and useful. A similar hack for Unix-like systems is already present there.

  • Comment on Re^2: starting a process in the background, with a twist

Replies are listed 'Best First'.
Re^3: starting a process in the background, with a twist
by davido (Cardinal) on Mar 20, 2012 at 22:00 UTC

    PS. I propose that this method (system 1, "program_name") be added to the relevant entry in perlfaq8, because it's simple and useful. A similar hack for Unix-like systems is already present there.

    You could propose it to the Perl5 Porters via their mailing list by submitting a patch as described in perlhack#SUPER-QUICK-PATCH-GUIDE.


    Dave

Re^3: starting a process in the background, with a twist
by bulk88 (Priest) on Mar 20, 2012 at 22:27 UTC
    Maybe Win32::Spawn in Win32?
Re^3: starting a process in the background, with a twist
by Anonymous Monk on Mar 20, 2012 at 22:56 UTC