Alternative to `pkill` or `pgrep -f` on cygwin?How to Cygwin Xwin -query an Ubuntu 11.10 Xserver?Linux: Kill process based on argumentsWhy can't I kill a timeout called from a Bash script with a keystroke?Capture complete process structure/stack`ps | grep | kill` aborts my script prematurelyProcess management and pkillSelect PID by full commandpkill with regexCygwin/X DISPLAY number no longer :0?How to kill multiple processes

The use of multiple foreign keys on same column in SQL Server

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

What do you call a Matrix-like slowdown and camera movement effect?

What is the offset in a seaplane's hull?

Minkowski space

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

How to write a macro that is braces sensitive?

What's the output of a record cartridge playing an out-of-speed record

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Do VLANs within a subnet need to have their own subnet for router on a stick?

LaTeX closing $ signs makes cursor jump

What does CI-V stand for?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Why dont electromagnetic waves interact with each other?

Fully-Firstable Anagram Sets

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Risk of getting Chronic Wasting Disease (CWD) in the United States?

Is this a crack on the carbon frame?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

Problem of parity - Can we draw a closed path made up of 20 line segments...

Why doesn't H₄O²⁺ exist?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Why does Kotter return in Welcome Back Kotter?

Service Entrance Breakers Rain Shield



Alternative to `pkill` or `pgrep -f` on cygwin?


How to Cygwin Xwin -query an Ubuntu 11.10 Xserver?Linux: Kill process based on argumentsWhy can't I kill a timeout called from a Bash script with a keystroke?Capture complete process structure/stack`ps | grep | kill` aborts my script prematurelyProcess management and pkillSelect PID by full commandpkill with regexCygwin/X DISPLAY number no longer :0?How to kill multiple processes






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








7















Suppose I have started my process like:



java -DSOME_STRING -jar foo.jar


Then on linux, I can use the following to find or kill this process:



pgrep -f SOME_STRING
pkill -f SOME_STRING


However this doesn't seem to work on cygwin. Can anyone suggest an alternative for these tools in cygwin?










share|improve this question



















  • 1





    Doesn't work in what way? Doesn't kill the process, doesn't find the process to kill it? Gives an error?

    – EightBitTony
    Aug 24 '11 at 21:51











  • pgrep doesn't find the process. pkill doesn't kill the process.

    – toolkit
    Aug 25 '11 at 20:48












  • Here are implementations of killall and pidof crafted for Cygwin. Depends on Python 2/ - github.com/kata198/cygwin-ps-misc

    – Tim Savannah
    Nov 25 '14 at 16:28


















7















Suppose I have started my process like:



java -DSOME_STRING -jar foo.jar


Then on linux, I can use the following to find or kill this process:



pgrep -f SOME_STRING
pkill -f SOME_STRING


However this doesn't seem to work on cygwin. Can anyone suggest an alternative for these tools in cygwin?










share|improve this question



















  • 1





    Doesn't work in what way? Doesn't kill the process, doesn't find the process to kill it? Gives an error?

    – EightBitTony
    Aug 24 '11 at 21:51











  • pgrep doesn't find the process. pkill doesn't kill the process.

    – toolkit
    Aug 25 '11 at 20:48












  • Here are implementations of killall and pidof crafted for Cygwin. Depends on Python 2/ - github.com/kata198/cygwin-ps-misc

    – Tim Savannah
    Nov 25 '14 at 16:28














7












7








7


3






Suppose I have started my process like:



java -DSOME_STRING -jar foo.jar


Then on linux, I can use the following to find or kill this process:



pgrep -f SOME_STRING
pkill -f SOME_STRING


However this doesn't seem to work on cygwin. Can anyone suggest an alternative for these tools in cygwin?










share|improve this question
















Suppose I have started my process like:



java -DSOME_STRING -jar foo.jar


Then on linux, I can use the following to find or kill this process:



pgrep -f SOME_STRING
pkill -f SOME_STRING


However this doesn't seem to work on cygwin. Can anyone suggest an alternative for these tools in cygwin?







kill ps cygwin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







toolkit

















asked Aug 24 '11 at 21:10









toolkittoolkit

3292412




3292412







  • 1





    Doesn't work in what way? Doesn't kill the process, doesn't find the process to kill it? Gives an error?

    – EightBitTony
    Aug 24 '11 at 21:51











  • pgrep doesn't find the process. pkill doesn't kill the process.

    – toolkit
    Aug 25 '11 at 20:48












  • Here are implementations of killall and pidof crafted for Cygwin. Depends on Python 2/ - github.com/kata198/cygwin-ps-misc

    – Tim Savannah
    Nov 25 '14 at 16:28













  • 1





    Doesn't work in what way? Doesn't kill the process, doesn't find the process to kill it? Gives an error?

    – EightBitTony
    Aug 24 '11 at 21:51











  • pgrep doesn't find the process. pkill doesn't kill the process.

    – toolkit
    Aug 25 '11 at 20:48












  • Here are implementations of killall and pidof crafted for Cygwin. Depends on Python 2/ - github.com/kata198/cygwin-ps-misc

    – Tim Savannah
    Nov 25 '14 at 16:28








1




1





Doesn't work in what way? Doesn't kill the process, doesn't find the process to kill it? Gives an error?

– EightBitTony
Aug 24 '11 at 21:51





Doesn't work in what way? Doesn't kill the process, doesn't find the process to kill it? Gives an error?

– EightBitTony
Aug 24 '11 at 21:51













pgrep doesn't find the process. pkill doesn't kill the process.

– toolkit
Aug 25 '11 at 20:48






pgrep doesn't find the process. pkill doesn't kill the process.

– toolkit
Aug 25 '11 at 20:48














Here are implementations of killall and pidof crafted for Cygwin. Depends on Python 2/ - github.com/kata198/cygwin-ps-misc

– Tim Savannah
Nov 25 '14 at 16:28






Here are implementations of killall and pidof crafted for Cygwin. Depends on Python 2/ - github.com/kata198/cygwin-ps-misc

– Tim Savannah
Nov 25 '14 at 16:28











3 Answers
3






active

oldest

votes


















13














pkill and pgrep certainly exist within Cygwin, in the procps package (you can search cygwin packages here).



It appears to work for me,



tony:~$ nohup sleep 100983 &
[1] 5476
tony:~$ nohup: ignoring input and appending output to `nohup.out'
tony:~$
tony:~$ ps -ef | grep sleep
tony 5476 2696 2 23:28:53 /usr/bin/sleep
tony:~$ pkill -f sleep
[1]+ Terminated nohup sleep 100983
tony:~$


and



tony:~$ nohup sleep 837746 &
[1] 228
tony:~$ nohup: ignoring input and appending output to `nohup.out'
tony:~$ pgrep -f 837746
228
tony:~$ pkill -f 837746
[1]+ Terminated nohup sleep 837746
tony:~$


Update: okay, tested with java. Executing java from the Cygwin command line does not result in the java string being placed into /proc/<pid>/cmdline, that just contains -bash.
This appears to be a limitation of Cygwin.



tony:~$ java -Dsomething=valid -jar Captor.jar &
[1] 2700
tony:~$ ps -ef
UID PID PPID TTY STIME COMMAND
tony 4164 1 ? Aug 21 /usr/bin/mintty
tony 4676 4164 0 Aug 21 /usr/bin/bash
tony 5776 4676 0 Aug 23 /usr/bin/ssh
tony 5148 1 ? 23:53:03 /usr/bin/mintty
tony 5332 5148 1 23:53:03 /usr/bin/bash
tony 5816 1 ? 00:04:16 /usr/bin/mintty
tony 5432 5816 2 00:04:16 /usr/bin/bash
tony 2700 5432 2 00:04:34 /cygdrive/c/Windows/system32/java
tony 2232 5432 2 00:04:39 /usr/bin/ps
tony:~$ pgrep -f something
tony:~$ cat /proc/2700/cmdline
-bash
tony:~$
tony:~$ cat /proc/2700/exename
/cygdrive/c/Windows/system32/java


I suspect therefore, the answer is you can't do this with a Cygwin tool, you would need a Windows specific tool.






share|improve this answer

























  • Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

    – Caleb
    Aug 25 '11 at 5:21











  • seems to work fine

    – EightBitTony
    Aug 25 '11 at 7:06











  • It seems procps is not available for x64 cygwin.

    – thameera
    Oct 15 '13 at 5:57






  • 1





    @thameera try package procps-ng.

    – Abdull
    Sep 22 '16 at 8:54






  • 1





    apt-cyg install procps-ng with newest cygwin

    – Timo
    Nov 20 '17 at 15:09


















4














The Cygwin utilities work like the Linux ones, but they only work on Cygwin processes. For Windows processes, you need to use Windows utilities, such as the ones from Sysinternals. PsKill can kill processes by name.






share|improve this answer


















  • 4





    as can the native taskkill /f /im procname.exe

    – Marcos
    Feb 28 '12 at 12:51






  • 2





    ps also shows Windows processes with the -W switch

    – golimar
    Dec 11 '14 at 17:00


















3














In older Cygwin versions, there is a procps package that you can install to get the same functionality with the same commands.



In newer Cygwin versions, the procps package no longer exists and is replaced by package procps-ng.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f19359%2falternative-to-pkill-or-pgrep-f-on-cygwin%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    13














    pkill and pgrep certainly exist within Cygwin, in the procps package (you can search cygwin packages here).



    It appears to work for me,



    tony:~$ nohup sleep 100983 &
    [1] 5476
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$
    tony:~$ ps -ef | grep sleep
    tony 5476 2696 2 23:28:53 /usr/bin/sleep
    tony:~$ pkill -f sleep
    [1]+ Terminated nohup sleep 100983
    tony:~$


    and



    tony:~$ nohup sleep 837746 &
    [1] 228
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$ pgrep -f 837746
    228
    tony:~$ pkill -f 837746
    [1]+ Terminated nohup sleep 837746
    tony:~$


    Update: okay, tested with java. Executing java from the Cygwin command line does not result in the java string being placed into /proc/<pid>/cmdline, that just contains -bash.
    This appears to be a limitation of Cygwin.



    tony:~$ java -Dsomething=valid -jar Captor.jar &
    [1] 2700
    tony:~$ ps -ef
    UID PID PPID TTY STIME COMMAND
    tony 4164 1 ? Aug 21 /usr/bin/mintty
    tony 4676 4164 0 Aug 21 /usr/bin/bash
    tony 5776 4676 0 Aug 23 /usr/bin/ssh
    tony 5148 1 ? 23:53:03 /usr/bin/mintty
    tony 5332 5148 1 23:53:03 /usr/bin/bash
    tony 5816 1 ? 00:04:16 /usr/bin/mintty
    tony 5432 5816 2 00:04:16 /usr/bin/bash
    tony 2700 5432 2 00:04:34 /cygdrive/c/Windows/system32/java
    tony 2232 5432 2 00:04:39 /usr/bin/ps
    tony:~$ pgrep -f something
    tony:~$ cat /proc/2700/cmdline
    -bash
    tony:~$
    tony:~$ cat /proc/2700/exename
    /cygdrive/c/Windows/system32/java


    I suspect therefore, the answer is you can't do this with a Cygwin tool, you would need a Windows specific tool.






    share|improve this answer

























    • Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

      – Caleb
      Aug 25 '11 at 5:21











    • seems to work fine

      – EightBitTony
      Aug 25 '11 at 7:06











    • It seems procps is not available for x64 cygwin.

      – thameera
      Oct 15 '13 at 5:57






    • 1





      @thameera try package procps-ng.

      – Abdull
      Sep 22 '16 at 8:54






    • 1





      apt-cyg install procps-ng with newest cygwin

      – Timo
      Nov 20 '17 at 15:09















    13














    pkill and pgrep certainly exist within Cygwin, in the procps package (you can search cygwin packages here).



    It appears to work for me,



    tony:~$ nohup sleep 100983 &
    [1] 5476
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$
    tony:~$ ps -ef | grep sleep
    tony 5476 2696 2 23:28:53 /usr/bin/sleep
    tony:~$ pkill -f sleep
    [1]+ Terminated nohup sleep 100983
    tony:~$


    and



    tony:~$ nohup sleep 837746 &
    [1] 228
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$ pgrep -f 837746
    228
    tony:~$ pkill -f 837746
    [1]+ Terminated nohup sleep 837746
    tony:~$


    Update: okay, tested with java. Executing java from the Cygwin command line does not result in the java string being placed into /proc/<pid>/cmdline, that just contains -bash.
    This appears to be a limitation of Cygwin.



    tony:~$ java -Dsomething=valid -jar Captor.jar &
    [1] 2700
    tony:~$ ps -ef
    UID PID PPID TTY STIME COMMAND
    tony 4164 1 ? Aug 21 /usr/bin/mintty
    tony 4676 4164 0 Aug 21 /usr/bin/bash
    tony 5776 4676 0 Aug 23 /usr/bin/ssh
    tony 5148 1 ? 23:53:03 /usr/bin/mintty
    tony 5332 5148 1 23:53:03 /usr/bin/bash
    tony 5816 1 ? 00:04:16 /usr/bin/mintty
    tony 5432 5816 2 00:04:16 /usr/bin/bash
    tony 2700 5432 2 00:04:34 /cygdrive/c/Windows/system32/java
    tony 2232 5432 2 00:04:39 /usr/bin/ps
    tony:~$ pgrep -f something
    tony:~$ cat /proc/2700/cmdline
    -bash
    tony:~$
    tony:~$ cat /proc/2700/exename
    /cygdrive/c/Windows/system32/java


    I suspect therefore, the answer is you can't do this with a Cygwin tool, you would need a Windows specific tool.






    share|improve this answer

























    • Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

      – Caleb
      Aug 25 '11 at 5:21











    • seems to work fine

      – EightBitTony
      Aug 25 '11 at 7:06











    • It seems procps is not available for x64 cygwin.

      – thameera
      Oct 15 '13 at 5:57






    • 1





      @thameera try package procps-ng.

      – Abdull
      Sep 22 '16 at 8:54






    • 1





      apt-cyg install procps-ng with newest cygwin

      – Timo
      Nov 20 '17 at 15:09













    13












    13








    13







    pkill and pgrep certainly exist within Cygwin, in the procps package (you can search cygwin packages here).



    It appears to work for me,



    tony:~$ nohup sleep 100983 &
    [1] 5476
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$
    tony:~$ ps -ef | grep sleep
    tony 5476 2696 2 23:28:53 /usr/bin/sleep
    tony:~$ pkill -f sleep
    [1]+ Terminated nohup sleep 100983
    tony:~$


    and



    tony:~$ nohup sleep 837746 &
    [1] 228
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$ pgrep -f 837746
    228
    tony:~$ pkill -f 837746
    [1]+ Terminated nohup sleep 837746
    tony:~$


    Update: okay, tested with java. Executing java from the Cygwin command line does not result in the java string being placed into /proc/<pid>/cmdline, that just contains -bash.
    This appears to be a limitation of Cygwin.



    tony:~$ java -Dsomething=valid -jar Captor.jar &
    [1] 2700
    tony:~$ ps -ef
    UID PID PPID TTY STIME COMMAND
    tony 4164 1 ? Aug 21 /usr/bin/mintty
    tony 4676 4164 0 Aug 21 /usr/bin/bash
    tony 5776 4676 0 Aug 23 /usr/bin/ssh
    tony 5148 1 ? 23:53:03 /usr/bin/mintty
    tony 5332 5148 1 23:53:03 /usr/bin/bash
    tony 5816 1 ? 00:04:16 /usr/bin/mintty
    tony 5432 5816 2 00:04:16 /usr/bin/bash
    tony 2700 5432 2 00:04:34 /cygdrive/c/Windows/system32/java
    tony 2232 5432 2 00:04:39 /usr/bin/ps
    tony:~$ pgrep -f something
    tony:~$ cat /proc/2700/cmdline
    -bash
    tony:~$
    tony:~$ cat /proc/2700/exename
    /cygdrive/c/Windows/system32/java


    I suspect therefore, the answer is you can't do this with a Cygwin tool, you would need a Windows specific tool.






    share|improve this answer















    pkill and pgrep certainly exist within Cygwin, in the procps package (you can search cygwin packages here).



    It appears to work for me,



    tony:~$ nohup sleep 100983 &
    [1] 5476
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$
    tony:~$ ps -ef | grep sleep
    tony 5476 2696 2 23:28:53 /usr/bin/sleep
    tony:~$ pkill -f sleep
    [1]+ Terminated nohup sleep 100983
    tony:~$


    and



    tony:~$ nohup sleep 837746 &
    [1] 228
    tony:~$ nohup: ignoring input and appending output to `nohup.out'
    tony:~$ pgrep -f 837746
    228
    tony:~$ pkill -f 837746
    [1]+ Terminated nohup sleep 837746
    tony:~$


    Update: okay, tested with java. Executing java from the Cygwin command line does not result in the java string being placed into /proc/<pid>/cmdline, that just contains -bash.
    This appears to be a limitation of Cygwin.



    tony:~$ java -Dsomething=valid -jar Captor.jar &
    [1] 2700
    tony:~$ ps -ef
    UID PID PPID TTY STIME COMMAND
    tony 4164 1 ? Aug 21 /usr/bin/mintty
    tony 4676 4164 0 Aug 21 /usr/bin/bash
    tony 5776 4676 0 Aug 23 /usr/bin/ssh
    tony 5148 1 ? 23:53:03 /usr/bin/mintty
    tony 5332 5148 1 23:53:03 /usr/bin/bash
    tony 5816 1 ? 00:04:16 /usr/bin/mintty
    tony 5432 5816 2 00:04:16 /usr/bin/bash
    tony 2700 5432 2 00:04:34 /cygdrive/c/Windows/system32/java
    tony 2232 5432 2 00:04:39 /usr/bin/ps
    tony:~$ pgrep -f something
    tony:~$ cat /proc/2700/cmdline
    -bash
    tony:~$
    tony:~$ cat /proc/2700/exename
    /cygdrive/c/Windows/system32/java


    I suspect therefore, the answer is you can't do this with a Cygwin tool, you would need a Windows specific tool.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 25 '11 at 23:03

























    answered Aug 24 '11 at 22:29









    EightBitTonyEightBitTony

    16.4k34454




    16.4k34454












    • Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

      – Caleb
      Aug 25 '11 at 5:21











    • seems to work fine

      – EightBitTony
      Aug 25 '11 at 7:06











    • It seems procps is not available for x64 cygwin.

      – thameera
      Oct 15 '13 at 5:57






    • 1





      @thameera try package procps-ng.

      – Abdull
      Sep 22 '16 at 8:54






    • 1





      apt-cyg install procps-ng with newest cygwin

      – Timo
      Nov 20 '17 at 15:09

















    • Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

      – Caleb
      Aug 25 '11 at 5:21











    • seems to work fine

      – EightBitTony
      Aug 25 '11 at 7:06











    • It seems procps is not available for x64 cygwin.

      – thameera
      Oct 15 '13 at 5:57






    • 1





      @thameera try package procps-ng.

      – Abdull
      Sep 22 '16 at 8:54






    • 1





      apt-cyg install procps-ng with newest cygwin

      – Timo
      Nov 20 '17 at 15:09
















    Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

    – Caleb
    Aug 25 '11 at 5:21





    Your example is substantially different than the one the OP is trying. You matched the name of the process rather than an arbitrary string in it's arguments. Can you test the latter and see if that works?

    – Caleb
    Aug 25 '11 at 5:21













    seems to work fine

    – EightBitTony
    Aug 25 '11 at 7:06





    seems to work fine

    – EightBitTony
    Aug 25 '11 at 7:06













    It seems procps is not available for x64 cygwin.

    – thameera
    Oct 15 '13 at 5:57





    It seems procps is not available for x64 cygwin.

    – thameera
    Oct 15 '13 at 5:57




    1




    1





    @thameera try package procps-ng.

    – Abdull
    Sep 22 '16 at 8:54





    @thameera try package procps-ng.

    – Abdull
    Sep 22 '16 at 8:54




    1




    1





    apt-cyg install procps-ng with newest cygwin

    – Timo
    Nov 20 '17 at 15:09





    apt-cyg install procps-ng with newest cygwin

    – Timo
    Nov 20 '17 at 15:09













    4














    The Cygwin utilities work like the Linux ones, but they only work on Cygwin processes. For Windows processes, you need to use Windows utilities, such as the ones from Sysinternals. PsKill can kill processes by name.






    share|improve this answer


















    • 4





      as can the native taskkill /f /im procname.exe

      – Marcos
      Feb 28 '12 at 12:51






    • 2





      ps also shows Windows processes with the -W switch

      – golimar
      Dec 11 '14 at 17:00















    4














    The Cygwin utilities work like the Linux ones, but they only work on Cygwin processes. For Windows processes, you need to use Windows utilities, such as the ones from Sysinternals. PsKill can kill processes by name.






    share|improve this answer


















    • 4





      as can the native taskkill /f /im procname.exe

      – Marcos
      Feb 28 '12 at 12:51






    • 2





      ps also shows Windows processes with the -W switch

      – golimar
      Dec 11 '14 at 17:00













    4












    4








    4







    The Cygwin utilities work like the Linux ones, but they only work on Cygwin processes. For Windows processes, you need to use Windows utilities, such as the ones from Sysinternals. PsKill can kill processes by name.






    share|improve this answer













    The Cygwin utilities work like the Linux ones, but they only work on Cygwin processes. For Windows processes, you need to use Windows utilities, such as the ones from Sysinternals. PsKill can kill processes by name.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 25 '11 at 23:35









    GillesGilles

    546k12911111624




    546k12911111624







    • 4





      as can the native taskkill /f /im procname.exe

      – Marcos
      Feb 28 '12 at 12:51






    • 2





      ps also shows Windows processes with the -W switch

      – golimar
      Dec 11 '14 at 17:00












    • 4





      as can the native taskkill /f /im procname.exe

      – Marcos
      Feb 28 '12 at 12:51






    • 2





      ps also shows Windows processes with the -W switch

      – golimar
      Dec 11 '14 at 17:00







    4




    4





    as can the native taskkill /f /im procname.exe

    – Marcos
    Feb 28 '12 at 12:51





    as can the native taskkill /f /im procname.exe

    – Marcos
    Feb 28 '12 at 12:51




    2




    2





    ps also shows Windows processes with the -W switch

    – golimar
    Dec 11 '14 at 17:00





    ps also shows Windows processes with the -W switch

    – golimar
    Dec 11 '14 at 17:00











    3














    In older Cygwin versions, there is a procps package that you can install to get the same functionality with the same commands.



    In newer Cygwin versions, the procps package no longer exists and is replaced by package procps-ng.






    share|improve this answer





























      3














      In older Cygwin versions, there is a procps package that you can install to get the same functionality with the same commands.



      In newer Cygwin versions, the procps package no longer exists and is replaced by package procps-ng.






      share|improve this answer



























        3












        3








        3







        In older Cygwin versions, there is a procps package that you can install to get the same functionality with the same commands.



        In newer Cygwin versions, the procps package no longer exists and is replaced by package procps-ng.






        share|improve this answer















        In older Cygwin versions, there is a procps package that you can install to get the same functionality with the same commands.



        In newer Cygwin versions, the procps package no longer exists and is replaced by package procps-ng.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 28 '17 at 17:43









        Abdull

        2661411




        2661411










        answered Aug 24 '11 at 22:02









        CalebCaleb

        51.8k9150194




        51.8k9150194



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f19359%2falternative-to-pkill-or-pgrep-f-on-cygwin%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.