You are right.

After I got the info. On how to detect the process,
I added the codes to kill them. Then I thought they all work.
Didn't think what I had asked.

Here is the fun part: I made a killapp.pl script and
Call it to kill Bridge with
`killapp.pl Bridge `

And it kills itself.

As it turned out, the script finds itself from the list because the
Command line includes Bridge(or "Adobe Illustrator" for Illustrator).

Now, I put the app. Name in two part,
`killapp.pl Brid   ge`
And merge them in the killapp.pl script.

It works. But somebody probably laughs at it.

Ted zeng



On 10/13/05 4:05 PM, "Jeff Lowrey" <[EMAIL PROTECTED]> wrote:

> At 01:36 PM 10/13/2005, Ted Zeng wrote:
>> As it turns out, only Sherm's version works
>> For all the situations.
> 
> Actually, merely for the situation that you didn't tell us you were aiming
> for.
> 
> You asked "How to find out if an application is running".
> 
> You didn't ask "How do I find out a PID so I can kill a process".
> 
> -jeff 
> 

Reply via email to