
lord_hairball
stranger
Mar 2, 2001, 1:13 PM
Post #1 of 1
(97 views)
|
|
process still executing after exit
|
Can't Post
|
|
the process 'tail' is still executing after the script exits. any ideas on how to stop it? script is coded as follows: #!/usr/contrib/bin/perl -w #tailsyslog.cgi $|=1; $SIG{ALRM} = "timed_out"; alarm 120; print "Content-type: text/plain\n\n"; open (IX,'tail -f /var/adm/syslog/syslog.log |'); while (<IX>) { chop $_; print "$_\n"; } close (IX); ###################functions##################### sub timed_out { print "Operation has timed out. You will need to start a new session.\n"; close (IX); exit; }
|