On Mon, Jul 27, 2009 at 9:54 AM, Shouri Chatterjee<[email protected]> wrote: > > > Hello Everyone, > > I am trying to spawn a program from my perl script - and later on I > would like to kill it. How do I go about doing this? > > The approach I have adopted for now is as follows:
fork() should is like the C system call. The parent process gets child's pid (which is what you want) and the child process gets a 0 (launch exec() for this process?). Hope that helps, Sharad Reference: 1. http://perldoc.perl.org/functions/fork.html --~--~---------~--~----~------------~-------~--~----~ Do you have another question? Click here - http://groups.google.com/group/iitdlug/post l...@iitd community mailing list -- http://groups.google.com/group/iitdlug -~----------~----~----~----~------~----~------~--~---
