This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to kill windows process from bash shell?


In my installation the path is "/usr/bin/kill"  Do a "which kill" to find the path.

On 10 May 2005 at 18:18, Christopher Faylor wrote:

Date sent:      	Tue, 10 May 2005 18:18:49 -0400
From:           	Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To:             	cygwin@cygwin.com
Subject:        	Re: how to kill windows process from bash shell?
Send reply to:  	cygwin@cygwin.com

[ Double-click this line for list subscription options ] 

On Tue, May 10, 2005 at 03:07:40PM -0700, David Fong wrote:
>Hi,
>I need some help.
>I have one windows process (WinXP)  that is running
>from one cygwin window.
> 
>The process is hanging and I want to kill the process
>from another cygwin window.
>There is a separate spawned process from my program
>C:\windows\system32\dwwin.exe
>and it has a process number displayed when I run
>ps -W in a separate cygwin process.
> 
>2480 1172 2480 2480 con 11293 13:14:32
>/cygdriver/c/hw/destination/rundump.bat
>2816 0 0 2816 ? 0 13:41:32 C:\windows\system32\cmd.exe
>2652 0 0 2652 ? 0 13:41:32
>C:\hw\destination\cmodel\player\Player.exe
>3412 0 0 3412 ? 0 13:41:32
>C:\windows\system32\dwwin.exe
>The dos batch file (rundump.bat) runs cmd.exe which
>calls Player.exe which calls this dwwin.exe when error
>occurs
>which has message of
> 
>Player.exe has encountered a problem and needs to
>close.
>We are sorry for the inconvenience.
>....
>Please tell Microsoft about this problem.
>....
>Send Error Report  Don't Send
> 
>As an example, it is process number 3412.
>When I type
>$ kill -9 3412
>in the cygwin windows, it replies that the process
>bash: kill: (3412) - No such process
>or when I type
>$ kill -f 3412
>bash: kill: f: invalid signal specification
> 
>I'm not familiar with usage of kill -f, only kill -9
>so I'm confused on what is the appropriate usage
>to kill process 3412.  Also, trying to kill 2652 does
>not work with same message.
>I don't want to kill the original calling batch file
>because I want to let it continue.
>I only want to kill the hanging windows process.

You need to run the program "/bin/kill" rather than the bash
builtin "kill": /bin/kill -f 3412

cgf



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
_______________________________________________________
John R Larsen <theClaw56@larsen-family.us>
http://larsen-family.us

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]