--- In Perl_Official%40yahoogroups.com">Perl_Officialyahoogroups.com, avinash k <avik1612...> wrote:
>
> hi,
>
> i am using the unix opearting system. > I have attached the code
> It is still not able to kill the process >
> Thanks in advance > Avinash
The code may have gotten stripped as a "non-text attachment". Try
pasting the relevant portion(s) in-line.
A few things could keep you from being able to kill processes:
* "kill" is not in your path - try running "kill -l" from a command line, it should result in a list of signals.
* You do not have permission to kill the process being attempted -
modify your script to print the kill statements and try running them
manually.
* You are not providing a process ID - This is going to depend what
you think is in pid, what is actually in pid, and what you think is
in $_ and what is actually in $_. Print is your friend in this case.
Or you can learn the perl debugger (a wonderful tool!) and inspect your variables around the kill statement.
* You should check $? for the status of the `` command to see how it
exited.