[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-psmisc" xreflabel="Psmisc" role="wrap">
|
---|
[673b0d8] | 7 | <title>Psmisc-&psmisc-version;</title>
|
---|
| 8 | <?dbhtml filename="psmisc.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Psmisc package contains programs for displaying information on
|
---|
| 14 | processes.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Psmisc installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 25 | GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
| 27 | </sect2>
|
---|
[3554fa3a] | 28 |
|
---|
[a001133] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Psmisc</title>
|
---|
| 31 |
|
---|
| 32 | <para>Prepare Psmisc for compilation:</para>
|
---|
| 33 |
|
---|
[9dfc02f] | 34 | <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
[73aedd1d] | 35 |
|
---|
| 36 | <para>The meaning of the configure option:</para>
|
---|
| 37 |
|
---|
[df8334f] | 38 | <variablelist>
|
---|
| 39 | <varlistentry>
|
---|
[8ad7980] | 40 | <term><parameter>--exec-prefix=""</parameter></term>
|
---|
[ef13657] | 41 | <listitem><para>This causes the binaries to be installed in <filename
|
---|
| 42 | class="directory">/bin</filename> instead of <filename
|
---|
| 43 | class="directory">/usr/bin</filename>. As the Psmisc programs are
|
---|
| 44 | often used in bootscripts, they should be available when the <filename
|
---|
| 45 | class="directory">/usr</filename> file system is not
|
---|
| 46 | mounted.</para></listitem>
|
---|
[df8334f] | 47 | </varlistentry>
|
---|
| 48 | </variablelist>
|
---|
[73aedd1d] | 49 |
|
---|
| 50 | <para>Compile the package:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput>make</userinput></screen>
|
---|
| 53 |
|
---|
[ef13657] | 54 | <para>Install the package:</para>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | <screen><userinput>make install</userinput></screen>
|
---|
| 57 |
|
---|
[8ad7980] | 58 | <para>There is no reason for the <command>pstree</command> and
|
---|
[ef13657] | 59 | <command>pstree.x11</command> programs to reside in <filename
|
---|
| 60 | class="directory">/bin</filename>. Therefore, move them to <filename
|
---|
| 61 | class="directory">/usr/bin</filename>. Also, there is no need for
|
---|
| 62 | <command>pstree.x11</command> to exist as a separate program. Make it
|
---|
| 63 | a symbolic link to <command>pstree</command> instead:</para>
|
---|
[10e1008] | 64 |
|
---|
| 65 | <screen><userinput>mv /bin/pstree* /usr/bin
|
---|
| 66 | ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
|
---|
| 67 |
|
---|
[ef13657] | 68 | <para>By default, Psmisc's <command>pidof</command> program is not
|
---|
| 69 | installed. This usually is not a problem because it is installed later
|
---|
| 70 | in the Sysvinit package, which provides a better
|
---|
| 71 | <command>pidof</command> program. If Sysvinit will not be used for a
|
---|
| 72 | particular system, complete the installation of Psmisc by creating the
|
---|
| 73 | following symlink:</para>
|
---|
[73aedd1d] | 74 |
|
---|
| 75 | <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
[6370fa6] | 78 |
|
---|
[5888299] | 79 |
|
---|
[c6cb3aa] | 80 | <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
|
---|
[673b0d8] | 81 |
|
---|
[c6cb3aa] | 82 | <segmentedlist>
|
---|
| 83 | <segtitle>Installed programs</segtitle>
|
---|
| 84 | <seglistitem><seg>fuser, killall, pstree and pstree.x11 (link to pstree)</seg></seglistitem>
|
---|
| 85 | </segmentedlist>
|
---|
[673b0d8] | 86 |
|
---|
[c6cb3aa] | 87 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 88 |
|
---|
[b8a819f] | 89 | <varlistentry id="fuser">
|
---|
| 90 | <term><command>fuser</command></term>
|
---|
[c6cb3aa] | 91 | <listitem>
|
---|
[673b0d8] | 92 | <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
|
---|
[c6cb3aa] | 93 | <para>reports the PIDs of processes that use the given files or file systems.</para>
|
---|
| 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
[73aedd1d] | 96 |
|
---|
[b8a819f] | 97 | <varlistentry id="killall">
|
---|
| 98 | <term><command>killall</command></term>
|
---|
[c6cb3aa] | 99 | <listitem>
|
---|
[673b0d8] | 100 | <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
|
---|
[ef13657] | 101 | <para>kills processes by name. It sends a signal to all processes
|
---|
| 102 | running any of the given commands.</para>
|
---|
[c6cb3aa] | 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
[673b0d8] | 105 |
|
---|
[b8a819f] | 106 | <varlistentry id="pstree">
|
---|
| 107 | <term><command>pstree</command></term>
|
---|
[c6cb3aa] | 108 | <listitem>
|
---|
[673b0d8] | 109 | <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
|
---|
[c6cb3aa] | 110 | <para>displays running processes as a tree.</para>
|
---|
| 111 | </listitem>
|
---|
| 112 | </varlistentry>
|
---|
[673b0d8] | 113 |
|
---|
[b8a819f] | 114 | <varlistentry id="pstree.x11">
|
---|
| 115 | <term><command>pstree.x11</command></term>
|
---|
[c6cb3aa] | 116 | <listitem>
|
---|
[673b0d8] | 117 | <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
|
---|
[c6cb3aa] | 118 | <para>same as pstree except that it waits for confirmation before exiting.</para>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 | </variablelist>
|
---|
[673b0d8] | 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | </sect1>
|
---|
[ef13657] | 126 |
|
---|