in reply to backticks & job control

Have you tried forking this off and having the child run the exec? This way the child keeps running as well as the parent (your main program). The parent would also have access to the child incase it needed to kill the process (a.pl).

Replies are listed 'Best First'.
Re^2: backticks & job control
by alexxx (Novice) on Mar 01, 2006 at 15:57 UTC
    you mean with fork() ? mmmm... I've always been much afraid of forks/threads, don't even know where to begin... alessandro
      I was in the similar situation some weeks ago, there is a snippet:
      my $pid = fork(); if ($pid) { #parent process continues here, $pid contains children pid } else { #child process continues here exec('some_command'); }