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 Date: Wed, 11 May 2005 04:57:08 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: John R Larsen cc: cygwin AT cygwin DOT com Subject: Re: how to kill windows process from bash shell? In-Reply-To: <42813327.5639.53B2D69A@localhost> Message-ID: References: <20050510220741 DOT 32025 DOT qmail AT web51804 DOT mail DOT yahoo DOT com> <42813327 DOT 5639 DOT 53B2D69A AT localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Ugh. Top-posting. Reformatted. On Tue, 10 May 2005, John R Larsen wrote: > 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 XXXXXX DOT XXX > Subject: Re: how to kill windows process from bash shell? > Send reply to: cygwin AT XXXXXX DOT XXX . > > On Tue, May 10, 2005 at 03:07:40PM -0700, David Fong wrote: > > >or when I type > > >$ kill -f 3412 > > >bash: kill: f: invalid signal specification > > >[snip] > > >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 > > In my installation the path is "/usr/bin/kill" Do a "which kill" to > find the path. Bash builtins take precedence over commands in the PATH. So do aliases and shell functions, for that matter. "which" doesn't know about either one of those. Use bash's "type" for more accurate information (i.e., "type kill"). And, as CGF mentioned, /bin and /usr/bin should be the same directory on proper Cygwin installations. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/