mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 18:57:20 -07:00
* debian/control, usr/bin/ctail, usr/share/man/man1/ctail.1:
- move the ctail command over to byobu, from bikeshed - ctail will tail and colorize log files
This commit is contained in:
parent
4fe5154e64
commit
b7eaf5fcd5
4 changed files with 56 additions and 2 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -3,6 +3,9 @@ byobu (5.81) unreleased; urgency=medium
|
|||
* usr/bin/byobu-enable.in, usr/share/man/man1/byobu-enable.1:
|
||||
- no need to launch byobu in byobu-enable (no idea why I did it
|
||||
that way originally)
|
||||
* debian/control, usr/bin/ctail, usr/share/man/man1/ctail.1:
|
||||
- move the ctail command over to byobu, from bikeshed
|
||||
- ctail will tail and colorize log files
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Apr 2014 09:36:59 -0700
|
||||
|
||||
|
|
7
debian/control
vendored
7
debian/control
vendored
|
@ -24,6 +24,7 @@ Recommends:
|
|||
run-one
|
||||
Suggests:
|
||||
apport,
|
||||
ccze,
|
||||
lsb-release,
|
||||
po-debconf,
|
||||
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
|
||||
|
@ -37,11 +38,13 @@ Provides:
|
|||
Replaces:
|
||||
screen-profiles (<< 2.0),
|
||||
screen-profiles-extras (<< 2.0),
|
||||
byobu-extras (<< 2.17)
|
||||
byobu-extras (<< 2.17),
|
||||
bikeshed (<< 1.47)
|
||||
Breaks:
|
||||
screen-profiles (<< 2.0),
|
||||
screen-profiles-extras (<< 2.0),
|
||||
byobu-extras (<< 2.17)
|
||||
byobu-extras (<< 2.17),
|
||||
bikeshed (<< 1.47)
|
||||
Enhances: screen
|
||||
Description: powerful, text based window manager and shell multiplexer
|
||||
Byobu is Ubuntu's text-based window manager based on GNU Screen.
|
||||
|
|
28
usr/bin/ctail
Executable file
28
usr/bin/ctail
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ctail - colorize and follow a log file
|
||||
#
|
||||
# Copyright (C) 2012 Dustin Kirkland <kirkland@ubuntu.com>
|
||||
#
|
||||
# Authors:
|
||||
# Dustin Kirkland <kirkland@ubuntu.com>
|
||||
#
|
||||
# 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 3 of the License.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if $BYOBU_TEST ccze -A >/dev/null 2>&1; then
|
||||
tail -F $@ | ccze -A
|
||||
else
|
||||
echo "ERROR: ccze not found, hint..." 1>&2
|
||||
echo " sudo apt-get install ccze" 2>&1
|
||||
exit 1
|
||||
fi
|
20
usr/share/man/man1/ctail.1
Normal file
20
usr/share/man/man1/ctail.1
Normal file
|
@ -0,0 +1,20 @@
|
|||
.TH ctail 1 "23 Oct 2012" byobu "byobu"
|
||||
.SH NAME
|
||||
ctail \- watch and colorize a logfile
|
||||
|
||||
.SH SYNOPSIS
|
||||
\fBctail\fP [FILE]
|
||||
|
||||
.SH DESCRIPTION
|
||||
\fBctail\fP is a very simple alias that watches a file and colorizes it. It's very useful for monitoring logfiles.
|
||||
|
||||
.SH EXAMPLE
|
||||
ctail /var/log/syslog
|
||||
|
||||
.SH SEE ALSO
|
||||
\fBccze\fP(1), \fBtail\fP(1)
|
||||
|
||||
.SH AUTHOR
|
||||
This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
|
||||
|
||||
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP.
|
Loading…
Add table
Add a link
Reference in a new issue