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