LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Linux task manager equivalent (https://www.linuxquestions.org/questions/linux-desktop-74/linux-task-manager-equivalent-859647/)

pilsner001 01-30-2011 07:06 PM

Linux task manager equivalent
 
Hi all,

I'm developing an application logger software. I should make a log file that contains all the applications opened by user. Under Windows is not matter, I could solve it using the tasklist. Under Linux it's a little bit different, because I can get the whole list of running processes olny using command ps. So I need some command/tool or any way to get the list of applications physically opened by user - e.g. list of opened windows.

ps.: it should be a cross-platform logger application

Thx

macemoneta 01-30-2011 07:10 PM

This command will provide the list of windows opened:

Code:

wmctrl -l
From 'man wmctrl':

Quote:

wmctrl is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification. wmctrl can query the window manager for information, and it can request that certain window management actions be taken.

pilsner001 01-31-2011 04:57 AM

it works, thanks a lot (Y)

MTK358 02-02-2011 08:38 AM

Mark the thread as solved.


All times are GMT -5. The time now is 03:26 PM.