Kill it in an END block:
$tail_id = open(GET_INFO, "tail -1lf info_file 2>/dev/null|") || die "Can't check info_file: $!\n"; END{ kill 3, $tail_id; }
In reply to Re: Getting a Perl program to close a command it starts when the perl program exits?
by BrowserUk
in thread Getting a Perl program to close a command it starts when the perl program exits?
by buzzthebuzzsaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |