Hi, But for this you need to know the process id. The system command doesn't returns, I think ?
~AN. -----Original Message----- From: Owen Cook [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 4:02 PM To: beginners@perl.org Subject: Re: Killing a process created using system On Wed, Apr 25, 2007 at 03:12:38PM +0530, Nath, Alok (STSD) wrote: > Hi, > Can I send a kill signal to a process which is created using > system call ? > > Basically I wanted to send a CTRL-C signal to the process > created by system call (of course in the same program). > > Something like this : > > sub test() > { > system (create process) > > now send kill signal ?? > > system (create next process) > } > Is it possible ? > maybe you want to look at perldoc -f kill perldoc -f getppid as a starter to get you going Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/