Recent

Author Topic: list of working process  (Read 3418 times)

ajosifoski

  • Jr. Member
  • **
  • Posts: 55
list of working process
« on: August 22, 2012, 10:40:39 am »
Is there a way to get list of executed process in memory?
only cross-platfrom solution..

ajosifoski

  • Jr. Member
  • **
  • Posts: 55
Re: list of working process
« Reply #1 on: August 22, 2012, 11:46:46 am »
actually I need to terminate process with given name..
This will be enough, since I know the name of process

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: list of working process
« Reply #2 on: August 22, 2012, 12:14:38 pm »
Have you searched the forum on words like kill process processlist tasklist?
There has been a thread on how to do this for Windows.

Perhaps that info also made it to the wiki, I don't know.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: list of working process
« Reply #3 on: August 22, 2012, 03:36:22 pm »
On Linux you can execute "ps -A" then scan its output for a line containing the process name, integer in the first column is its PID. You can then use fpkill to kill the process. On Windows... err... I have no idea :-[

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: list of working process
« Reply #4 on: August 23, 2012, 01:57:39 pm »
In Windows, the free Process Explorer does exactly that. It has options to kill also all descendants. You can also see the activity of all processes running. Most of the times it also can kill stuck applications.

 

TinyPortal © 2005-2018