M
Mike Kamzyuk
Hello. I use perl on windows. Please don't post anything related to
unix/linux/bsd/etc.
Here's my problem. I have a script which is trying to run another
script. I need to run the second script without blocking the first
one. The second script needs to share nothing with the first one -
that is, it should have its own STDIN, STDOUT, PID, etc. I don't need
to access anything about the second script from the first one (although
it's not harmful either). I also don't need to access anything about
the first perl script from the second one (although that's also not
harmful).
How can this be accomplished? (Short of writing a c++ exe that does it
and calling it from the first script
P.S.
Perl cookbook's example doesn't work. I've tried it way too many
times, trust me.
Forking appears to hang both processes. I've done an obvious if
statement there.
Thanks in advance,
Mike.
unix/linux/bsd/etc.
Here's my problem. I have a script which is trying to run another
script. I need to run the second script without blocking the first
one. The second script needs to share nothing with the first one -
that is, it should have its own STDIN, STDOUT, PID, etc. I don't need
to access anything about the second script from the first one (although
it's not harmful either). I also don't need to access anything about
the first perl script from the second one (although that's also not
harmful).
How can this be accomplished? (Short of writing a c++ exe that does it
and calling it from the first script
P.S.
Perl cookbook's example doesn't work. I've tried it way too many
times, trust me.
Forking appears to hang both processes. I've done an obvious if
statement there.
Thanks in advance,
Mike.