Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "John R Larsen" To: cygwin AT cygwin DOT com Date: Tue, 10 May 2005 22:18:15 -0400 MIME-Version: 1.0 Subject: Re: how to kill windows process from bash shell? Reply-To: theClaw56 AT larsen-family DOT us Message-ID: <42813327.5639.53B2D69A@localhost> In-reply-to: <20050510221849.GA9392@trixie.casa.cgf.cx> References: <20050510220741 DOT 32025 DOT qmail AT web51804 DOT mail DOT yahoo DOT com> Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-IsSubscribed: yes 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 To: cygwin AT cygwin DOT com Subject: Re: how to kill windows process from bash shell? Send reply to: cygwin AT cygwin DOT 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 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/