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
rob_wilson_98 < no_reply%40yahoogroups.com">no_reply
yahoogroups.com> wrote:
--- In Perl_Official%40yahoogroups.com">Perl_Official
yahoogroups.com, avinash k <avik1612
...> wrote:
>
> hi,
>
> i am trying this statement but it is not executing i.e. killing
process
>
> $force ="-9";
>
> print "Kill $force $pid[$_]n";
>
>
> Thanks and Regards
> Avinash
>
>
All your script would do is print out a Kill message. It will not
execute the Kill command. In fact, I am not aware of a "Kill"
command. If you're on Windows, you must have some sort of unix-like
toolkit involved and then you'd probably still need the "kill" command
- note no capitalization. On Unix things are case-sensitive so you
have to use the "kill" command. It also has to be in your path (it
normally is by default).
Perhaps you're looking for something like:
$force = "-9";
`kill $force $pid[$_]`;
If that's not what you want, post more information such as the OS,
what you're trying to accomplish, and what _exactly_ seems to be the
problem (error messages, observed behavior, output from "use strict"
or "-w", etc.
---------------------------------
Once upon a time there was 1 GB storage in your inbox. Click here for happy ending.
[Non-text portions of this message have been removed]