public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin corrupted taskkill in windows commandline
@ 2012-09-20 17:18 Hazel
  2012-09-21  8:48 ` jurriaan
  2012-09-21 16:50 ` Voris, Ben
  0 siblings, 2 replies; 9+ messages in thread
From: Hazel @ 2012-09-20 17:18 UTC (permalink / raw)
  To: cygwin

Hi, I just installed cygwin and now I can not use the native taskkill command
from windows command line, it will only reply with:

'taskkill' is not recognized as an internal or external command, operable
program or batch file.


This installation of Windows XP Pro 32Bit SP3 has been working with no
issues since it was installed a year ago.

I really need to solve this issue as ALOT of tools i have for windows uses
"taskkill" for aborting DOS programs i use for special equipment such as a
dot-matrix printer.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Cygwin-corrupted-taskkill-in-windows-commandline-tp92938.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Cygwin corrupted taskkill in windows commandline
  2012-09-20 17:18 Cygwin corrupted taskkill in windows commandline Hazel
@ 2012-09-21  8:48 ` jurriaan
  2012-09-21 16:50 ` Voris, Ben
  1 sibling, 0 replies; 9+ messages in thread
From: jurriaan @ 2012-09-21  8:48 UTC (permalink / raw)
  To: cygwin

From: Hazel <blackbot@inbox.com>
Date: Thu, Sep 20, 2012 at 07:06:39AM -0700
> Hi, I just installed cygwin and now I can not use the native taskkill command
> from windows command line, it will only reply with:
> 
> 'taskkill' is not recognized as an internal or external command, operable
> program or batch file.
> 
I think that's more probably related to the command taskkill being found
than to the file taskkill.exe being corrupted by Cygwin. Did something
change your PATH ?

Kind regards,
Jurriaan
-- 
And money rides while people crawl
And another quiet night goes by
	Oysterband - Another quiet night in England

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Cygwin corrupted taskkill in windows commandline
  2012-09-20 17:18 Cygwin corrupted taskkill in windows commandline Hazel
  2012-09-21  8:48 ` jurriaan
@ 2012-09-21 16:50 ` Voris, Ben
  2012-09-21 19:21   ` Earnie Boyd
  1 sibling, 1 reply; 9+ messages in thread
From: Voris, Ben @ 2012-09-21 16:50 UTC (permalink / raw)
  To: cygwin

On my system, taskkill is /cygdrive/c/Windows/system32/taskkill.  That is, it is not part of Cygwin but is part of Windows.  I suspect either that your PATH no longer includes /cygdrive/c/Windows/system32 or that taskkill.exe has been removed from that Windows directory.

-----Original Message-----
From: Hazel 

Hi, I just installed cygwin and now I can not use the native taskkill command
from windows command line, it will only reply with:

'taskkill' is not recognized as an internal or external command, operable
program or batch file.


This installation of Windows XP Pro 32Bit SP3 has been working with no
issues since it was installed a year ago.

I really need to solve this issue as ALOT of tools i have for windows uses
"taskkill" for aborting DOS programs i use for special equipment such as a
dot-matrix printer.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Cygwin-corrupted-taskkill-in-windows-commandline-tp92938.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Cygwin corrupted taskkill in windows commandline
  2012-09-21 16:50 ` Voris, Ben
@ 2012-09-21 19:21   ` Earnie Boyd
  2012-09-24 17:13     ` Voris, Ben
  0 siblings, 1 reply; 9+ messages in thread
From: Earnie Boyd @ 2012-09-21 19:21 UTC (permalink / raw)
  To: cygwin

On Fri, Sep 21, 2012 at 11:59 AM, Voris, Ben wrote:
> On my system, taskkill is /cygdrive/c/Windows/system32/taskkill.  That is,
> it is not part of Cygwin but is part of Windows.  I suspect either that your
> PATH no longer includes /cygdrive/c/Windows/system32 or that taskkill.exe
> has been removed from that Windows directory.

If it is 64 bit system then it will not be available in a 32 bit
process such as Cygwin's bash in that directory.  You'll need to look
at /cygdrive/c/Windows/sysnative/taskkill instead.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Cygwin corrupted taskkill in windows commandline
  2012-09-21 19:21   ` Earnie Boyd
@ 2012-09-24 17:13     ` Voris, Ben
  2012-09-25 19:46       ` Hazel
  0 siblings, 1 reply; 9+ messages in thread
From: Voris, Ben @ 2012-09-24 17:13 UTC (permalink / raw)
  To: Voris, Ben, cygwin

> From: Earnie Boyd 
> Sent: Friday, September 21, 2012 11:29 AM
> To: cygwinAtcygwinDOTcom
> Subject: Re: Cygwin corrupted taskkill in windows commandline
> 
> On Fri, Sep 21, 2012 at 11:59 AM, Voris, Ben wrote:
> > On my system, taskkill is /cygdrive/c/Windows/system32/taskkill.  That is,
> > it is not part of Cygwin but is part of Windows.  I suspect either that your
> > PATH no longer includes /cygdrive/c/Windows/system32 or that taskkill.exe
> > has been removed from that Windows directory.
> 
> If it is 64 bit system then it will not be available in a 32 bit
> process such as Cygwin's bash in that directory.  You'll need to look
> at /cygdrive/c/Windows/sysnative/taskkill instead.
> 
> -- 
> Earnie
> -- https://sites.google.com/site/earnieboyd
>

As I read it, http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx  says that use of sysnative is optional for WOW64 applications.  However, http://support.microsoft.com/kb/942589 reports a problem with directly using system32 on 64-bit version of Server 2003 and Windows XP.  Perhaps the version of Microsoft Windows is the issue?

On my Windows-7 64-bit system, sysnative is not in the path but system32 is.  On that system, taskkill seems to work from Cygwin.

: file $(type -p taskkill.exe)
/cygdrive/c/Windows/system32/taskkill.exe: PE32 executable (console) Intel 80386, for MS Windows

: $taskkill /?

TASKKILL [/S system [/U username [/P [password]]]]
         { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]

Description:
    This tool is used to terminate tasks by process id (PID) or image name.

...

C:\> dir %SYSTEMROOT%\taskkill.exe /s
...

 Directory of C:\Windows\System32

2009-07-13  18:39           112,640 taskkill.exe
               1 File(s)        112,640 bytes

 Directory of C:\Windows\SysWOW64

2009-07-13  18:14            77,824 taskkill.exe
               1 File(s)         77,824 bytes


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Cygwin corrupted taskkill in windows commandline
  2012-09-24 17:13     ` Voris, Ben
@ 2012-09-25 19:46       ` Hazel
  2012-09-25 20:17         ` Earnie Boyd
  0 siblings, 1 reply; 9+ messages in thread
From: Hazel @ 2012-09-25 19:46 UTC (permalink / raw)
  To: cygwin

What is it that's so hard to understand?.

C:\Windows\system32\cmd.exe  Can not execute native functions.

This is on *XP Pro 32bit* as already stated.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Cygwin-corrupted-windows-commandline-tp92938p93051.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Cygwin corrupted taskkill in windows commandline
  2012-09-25 19:46       ` Hazel
@ 2012-09-25 20:17         ` Earnie Boyd
  2012-09-27 13:50           ` Hazel
  0 siblings, 1 reply; 9+ messages in thread
From: Earnie Boyd @ 2012-09-25 20:17 UTC (permalink / raw)
  To: cygwin

On Tue, Sep 25, 2012 at 2:32 PM, Hazel wrote:
> What is it that's so hard to understand?.
>
> C:\Windows\system32\cmd.exe  Can not execute native functions.
>
> This is on *XP Pro 32bit* as already stated.

Then you have an issue that is not related to Cygwin even though the
issue may have begun coincidental to you installing Cygwin.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Cygwin corrupted taskkill in windows commandline
  2012-09-25 20:17         ` Earnie Boyd
@ 2012-09-27 13:50           ` Hazel
  2012-09-27 14:56             ` Christopher Faylor
  0 siblings, 1 reply; 9+ messages in thread
From: Hazel @ 2012-09-27 13:50 UTC (permalink / raw)
  To: cygwin

What do I have to do in order to fix this?.

My XP Cd does not offer a repair option.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Cygwin-corrupted-windows-commandline-tp92938p93113.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Cygwin corrupted taskkill in windows commandline
  2012-09-27 13:50           ` Hazel
@ 2012-09-27 14:56             ` Christopher Faylor
  0 siblings, 0 replies; 9+ messages in thread
From: Christopher Faylor @ 2012-09-27 14:56 UTC (permalink / raw)
  To: cygwin

On Thu, Sep 27, 2012 at 06:49:35AM -0700, Hazel wrote:
>What do I have to do in order to fix this?.
>
>My XP Cd does not offer a repair option.

Fix *what*?  There were suggestions in this thread.  If you tried them and
they didn't work then make it clear precisely what isn't working.

Also, if this isn't an actual Cygwin problem then please look elsewhere
for help.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-09-27 14:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-20 17:18 Cygwin corrupted taskkill in windows commandline Hazel
2012-09-21  8:48 ` jurriaan
2012-09-21 16:50 ` Voris, Ben
2012-09-21 19:21   ` Earnie Boyd
2012-09-24 17:13     ` Voris, Ben
2012-09-25 19:46       ` Hazel
2012-09-25 20:17         ` Earnie Boyd
2012-09-27 13:50           ` Hazel
2012-09-27 14:56             ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).