List Info

Thread: Re: Regarding killing process




Re: Regarding killing process
country flaguser name
United States
2007-08-10 09:10:04

--- In Perl_Official%40yahoogroups.com">Perl_Officialyahoogroups.com, avinash k <avik1612...> wrote:
&gt;
> hi,
>
> i am trying this statement but it is not executing i.e. killing
process
&gt;
> $force ="-9&quot;;
&gt;
> print "Kill $force $pid[$_]n&quot;;
&gt;
>
> 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&quot;;
`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&quot;
or "-w&quot;, etc.

__._,_.___
.

__,_._,___
Re: Re: Regarding killing process
country flaguser name
India
2007-08-13 00:31:16

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_replyyahoogroups.com> wrote:
--- In Perl_Official%40yahoogroups.com">Perl_Officialyahoogroups.com, avinash k <avik1612...> wrote:
&gt;
> hi,
>
> i am trying this statement but it is not executing i.e. killing
process
&gt;
> $force ="-9&quot;;
&gt;
> print "Kill $force $pid[$_]n&quot;;
&gt;
>
> 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&quot;;
`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&quot;
or "-w&quot;, 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]

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Find Enlightenment

Yoga groups and

resources on

Yahoo! Groups.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )