Forum > General
Kill apps under linux
(1/1)
filipenf:
I'm creating a updater for my program and I need to kill the program when I need to download the newest version.
First of all I need to list all process on the machine, to discover what pids to kill.
In the Linux API there is a way to do that? Where can I find more info about this?
Thanks
matthijs:
Have a look at this. And think of commands like ps.
To get a list of running processes you use ps. Catch the output and extract the process ID from your program. Then issue the kill -9 <pid> command.
Marc:
if you wamt to do it in code, use fpKill()
don't know how to get a process list
Navigation
[0] Message Index