lps

Name

lps -- A backend to cron job messages.

Synopsis

lps [ almost any option suitable for ps(1) ]

DESCRIPTION

This manual page documents the lps command.

lps is a wrapper program to add an additional column named "LXC" to the output of ps(1). All given command line arguments are passed to the ps(1) command without modification.

The additional column "LXC" contains the container name or a "-" if the process belongs directly to the host system.

As the pid is used as a reference by this program it will fail if the output of "ps" is missing a PID column.

The width of the "LXC" column is calculated as the maximum string length of any container name present.

FEATURES

OPTIONS

see ps(1)

Almost any command line arguments suitable for ps(1) can be used, except for those not providing a column named "PID".

ENVIRONMENT

None

Examples

lps xa

lps -ef

lps xa | awk '$1 == "-" { print }'

FILES

/sys/fs/cgroup/systemd/lxc/*/tasks pids of the corresponding LXC instance.

SEE ALSO

ps(1), lxc(7)

BUGS

Mostly those of ps(1).

AUTHOR

This manual page was written by LiHAS for the lps software and may be used by others. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.

DISTRIBUTION

The newest version of lps can be obtained from http://ftp.lihas.de/debian

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; Version 2. This guarantees your right to use, modify, and redistribute lps under certain conditions.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details (it is in the COPYING file of the lps distribution).