>I want to start a program in perl but i need to keep
>the pid to be able to kill it in the future.
>
>For exmple:
>
>system("top &");
>
>this would start "top", but then i wouldn't be able to
>identify the process in order to kill it. Is there a
>way to do this (other than using fork) ?Have you tried to use open? $PID_OF_TOP = open (FILEHANDLE, "top |"); if you open a pipe to (or from) a process, open returns its PID. And you're able to get its output. (or write some data to its STDIN). perldoc -f open Hannes -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
