Whowatch: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „{{DISPLAYTITLE:whowatch}} '''topic''' kurze Beschreibung ==Beschreibung== ==Installation== ==Anwendungen== ==Syntax== ===Optionen=== ===Parameter=== ===Umgebungsvariablen=== ===Exit-Status=== ==Konfiguration== ===Dateien=== ==Sicherheit== ==Dokumentation== ===RFC=== ===Man-Pages=== ===Info-Pages=== ==Siehe auch== ==Links== ===Projekt-Homepage=== ===Weblinks=== ===Einzelnachweise=== <references /> ==Testfragen== <div class="toccolours mw-collapsible mw-co…“
 
Zeile 48: Zeile 48:


=Manpage=
=Manpage=
==NAME==
== NAME ==
whowatch - console, interactive, process and users monitoring tool.
whowatch - console, interactive, process and users monitoring tool.


==DESCRIPTION==
== DESCRIPTION ==
Whowatch is an console, interactive users and process monitoring tool. It displays information about the users currently logged on to the machine, in real-time. Besides standard information
Whowatch is an console, interactive users and process monitoring tool.  
(login name, tty, host, user's process), the type of the connection (ie. telnet or ssh) is shown. Display of users command line can be switch to tty idle time. Certain user can be se‐
* It displays information about the users currently logged on to the machine, in real-time.  
lected and his processes tree may be viewed as well as tree of all system processes. Tree may be displayed with additional column that shows owner of each process. In the process tree mode SIGINT, SIGHUP, SIGTERM and SIGKILL signals can be sent to the selected process. Killing pro‐
* Besides standard information
cesses is just as simple and fun as deleting lines on the screen.
(login name, tty, host, users process), the type of the connection (ie. telnet or ssh) is shown.  
* Display of users command line can be switch to tty idle time.  
* Certain user can be selected and his processes tree may be viewed as well as tree of all system processes.  
* Tree may be displayed with additional column that shows owner of each process.  
* In the process tree mode SIGINT, SIGHUP, SIGTERM and SIGKILL signals can be sent to the selected process.  
* Killing processes is just as simple and fun as deleting lines on the screen.


Whowatch has no command line options or configuration file. All actions are performed in real time by pressing following keys:
Whowatch has no command line options or configuration file.  
* All actions are performed in real time by pressing following keys:


Users list mode:
; Users list mode
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Aufgabe!!Befehl
! Befehl !! Beschreibung
|-
|-
|'up' 'down'||cursor movement
| up down || cursor movement
|-
|-
|'i'||toggle between user command line and idle time
|i || toggle between user command line and idle time
|-
|-
|'c'||full command line on/off. Disabling full command line can save CPU time. It can give you also some additional information about process executable.
| c || full command line on/off.  
* Disabling full command line can save CPU time.  
* It can give you also some additional information about process executable.
|-
|-
|'enter'||view selected user's processes tree.
| enter || view selected users processes tree.
|-
|-
|'t'||all system processes (init tree)
| t || all system processes (init tree)
|}
|}


Tree mode:
; Tree mode
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Aufgabe!!Befehl
! Befehl !! Beschreibung
|-
|-
|'up' 'down'||cursor movement
| up down || cursor movement
|-
|-
|'enter'||go back to users list
| enter || go back to users list
|-
|-
|'o'||show processes owners
| o || show processes owners
|-
|-
|'c'||full command line on/off. Disabling full command line can save CPU time. It can give you also some additional information about process executable.
| c || full command line on/off.  
* Disabling full command line can save CPU time.  
* It can give you also some additional information about process executable.
|-
|-
|'Ctrl-I'||send INT signal to selected process
| Ctrl-I || send INT signal to selected process
|-
|-
|'Ctrl-K'||send KILL signal to selected process
| Ctrl-K || send KILL signal to selected process
|-
|-
|'Ctrl-U'||send HUP signal to selected process
| Ctrl-U || send HUP signal to selected process
|-
|-
|'Ctrl-T'||send TERM signal to selected process
| Ctrl-T || send TERM signal to selected process
|}
|}


==PLUGINS==
== PLUGINS ==
Whowatch has ability to load plugin during program run. Plugin prints information inside details window. Plugins gives flexibility: if some specific information about process, user or system is needed then separate program could be written to obtain such information. Since there are three kinds of deatils window (process, user and system) maximum three plugins can be loaded. Whowatch has very simple API to write plugins.
Whowatch has ability to load plugin during program run.  
* Plugin prints information inside details window.  
* Plugins gives flexibility: if some specific information about process, user or system is needed then separate program could be written to obtain such information.  
* Since there are three kinds of deatils window (process, user and system) maximum three plugins can be loaded.  
* Whowatch has very simple API to write plugins.


==FILES==
== FILES ==
Program reads /var/log/wtmp, /var/run/utmp. Under Linux program also reads files from /proc directory. Without read access to these files whowatch funcionality will be limited or program will not even start.
Program reads /var/log/wtmp, /var/run/utmp.  
* Under Linux program also reads files from /proc directory.  
* Without read access to these files whowatch funcionality will be limited or program will not even start.


==SEE ALSO==
== SEE ALSO ==
finger(1) ps(1), pstree(1), top(1), w(1), lsof(8), kill(1) killall(1)
finger(1) ps(1), pstree(1), top(1), w(1), lsof(8), kill(1) killall(1)


==BUGS==
== BUGS ==
Because lack of ut_pid in utmp and wtmp structures in *BSD systems, program tries to obtain pid of a login shell by analyzing processes controlling terminal and processes names. Under some conditions it may lead to incorrect results ie. there will be incorrect processes tree associated with user's session.
Because lack of ut_pid in utmp and wtmp structures in *BSD systems, program tries to obtain pid of a login shell by analyzing processes controlling terminal and processes names.  
* Under some conditions it may lead to incorrect results ie.  
* there will be incorrect processes tree associated with users session.
 
[[Kategorie:Linux:Befehl]]
[[Kategorie:Linux:Befehl]]
[[Kategorie:Linux:Benutzer]]
[[Kategorie:Linux:Benutzer]]
[[Kategorie:Linux:Prozesse]]
[[Kategorie:Linux:Prozesse]]
{{DEFAULTSORT:whowatch}}
{{DEFAULTSORT:whowatch}}

Version vom 6. August 2022, 09:25 Uhr


topic kurze Beschreibung

Beschreibung

Installation

Anwendungen

Syntax

Optionen

Parameter

Umgebungsvariablen

Exit-Status

Konfiguration

Dateien

Sicherheit

Dokumentation

RFC

Man-Pages

Info-Pages

Siehe auch

Links

Projekt-Homepage

Weblinks

Einzelnachweise

Testfragen

Testfrage 1

Antwort1

Testfrage 2

Antwort2

Testfrage 3

Antwort3

Testfrage 4

Antwort4

Testfrage 5

Antwort5

Manpage

NAME

whowatch - console, interactive, process and users monitoring tool.

DESCRIPTION

Whowatch is an console, interactive users and process monitoring tool.

  • It displays information about the users currently logged on to the machine, in real-time.
  • Besides standard information

(login name, tty, host, users process), the type of the connection (ie. telnet or ssh) is shown.

  • Display of users command line can be switch to tty idle time.
  • Certain user can be selected and his processes tree may be viewed as well as tree of all system processes.
  • Tree may be displayed with additional column that shows owner of each process.
  • In the process tree mode SIGINT, SIGHUP, SIGTERM and SIGKILL signals can be sent to the selected process.
  • Killing processes is just as simple and fun as deleting lines on the screen.

Whowatch has no command line options or configuration file.

  • All actions are performed in real time by pressing following keys:
Users list mode
Befehl Beschreibung
up down cursor movement
i toggle between user command line and idle time
c full command line on/off.
  • Disabling full command line can save CPU time.
  • It can give you also some additional information about process executable.
enter view selected users processes tree.
t all system processes (init tree)
Tree mode
Befehl Beschreibung
up down cursor movement
enter go back to users list
o show processes owners
c full command line on/off.
  • Disabling full command line can save CPU time.
  • It can give you also some additional information about process executable.
Ctrl-I send INT signal to selected process
Ctrl-K send KILL signal to selected process
Ctrl-U send HUP signal to selected process
Ctrl-T send TERM signal to selected process

PLUGINS

Whowatch has ability to load plugin during program run.

  • Plugin prints information inside details window.
  • Plugins gives flexibility: if some specific information about process, user or system is needed then separate program could be written to obtain such information.
  • Since there are three kinds of deatils window (process, user and system) maximum three plugins can be loaded.
  • Whowatch has very simple API to write plugins.

FILES

Program reads /var/log/wtmp, /var/run/utmp.

  • Under Linux program also reads files from /proc directory.
  • Without read access to these files whowatch funcionality will be limited or program will not even start.

SEE ALSO

finger(1) ps(1), pstree(1), top(1), w(1), lsof(8), kill(1) killall(1)

BUGS

Because lack of ut_pid in utmp and wtmp structures in *BSD systems, program tries to obtain pid of a login shell by analyzing processes controlling terminal and processes names.

  • Under some conditions it may lead to incorrect results ie.
  • there will be incorrect processes tree associated with users session.