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?


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 <cgf-no-personal-reply-please@XXXXXX.XXX>
> To:             	cygwin@XXXXXX.XXX
> Subject:        	Re: how to kill windows process from bash shell?
> Send reply to:  	cygwin@XXXXXX.XXX

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.

> > 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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


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