F
funtoosh
Hi
I am using latest PERL provided with REDHAT 9.
I use this snippet of perl in t.pl
$SIG{'TERM'}=\&doItNow ;
$anotherProgram=$ARGV[0];
open (AP,"$anotherProgram |") or die "$_ \n" ;
sub doItNow {
print "called doItNow \n ";
}
and I run it as follows at xterm prompt :
perl t.pl "../working/nameoftheprogram" &
So, I put it under background.
Now I do ps at the same prompt and I see the process id of perl script
and the anotherProgram.
Now, when I send signal SIGTERM to the perl script, it DOES NOT call
the installed handler
kill -15 <process-id of the perl script>
Any clue ?
Sorry, for dumb question
but this post is the only hope left to me.
thx
I am using latest PERL provided with REDHAT 9.
I use this snippet of perl in t.pl
$SIG{'TERM'}=\&doItNow ;
$anotherProgram=$ARGV[0];
open (AP,"$anotherProgram |") or die "$_ \n" ;
sub doItNow {
print "called doItNow \n ";
}
and I run it as follows at xterm prompt :
perl t.pl "../working/nameoftheprogram" &
So, I put it under background.
Now I do ps at the same prompt and I see the process id of perl script
and the anotherProgram.
Now, when I send signal SIGTERM to the perl script, it DOES NOT call
the installed handler
kill -15 <process-id of the perl script>
Any clue ?
Sorry, for dumb question
thx