Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Killing the child process is not working

by BrowserUk (Pope)
on Mar 20, 2013 at 08:12 UTC ( #1024471=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Killing the child process is not working
in thread Killing the child process is not working

But I know only one way to create the child to run it parallel to parent in perl 5.6 using fork

If all you want it to run an asynchronous process, try my $childPid = system 1, q[theCommand and args];.

But don;t expect much help if you run into problems. On 5.6, you are on your own. Noone wants to be bothered trying to re-debug code that has long since been fixed.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: Killing the child process is not working
Download Code
Re^4: Killing the child process is not working
by srlbharu (Acolyte) on Mar 20, 2013 at 09:06 UTC

    The system 1, $cmd does not work.

    Can you please let me know how to get the child process id in the Child code? If I know that I will try to send the SIG{INT} interrupt, because manual CTRL-C gets me into the interrupt handler for $SIG{INT} and program execution stops

      The system 1, $cmd does not work.

      Define?

      Can you please let me know how to get the child process id in the Child code?

      I already did. Read fork


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024471]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-08-20 15:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (118 votes), past polls