multitail - tail, but for multiple files with colorization and filters ChangeLog

HOWTO


# MultiTail 6.0
# =============
# Prerequisites:
# ncurses

# Get it
cd
test -f installed/multitail-6.0.tgz && mv -f installed/multitail-6.0.tgz .
test ! -f multitail-6.0.tgz &&
wget http://www.vanheusden.com/multitail/multitail-6.0.tgz

# Extract the source
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "multitail-*" -exec rm -r {} \;
tar xzvf ~/multitail-6.0.tgz
cd multitail-6.0
test $UID = 0 && chown -R root:root .

# Build it
make CONFIG_FILE=/usr/local/etc/multitail/multitail.conf

# Check the build (requires cppcheck)
make check

# Become root to install it
su

# Remove old files that may cause issues/duplicates
test -x /usr/bin/multitail && rm /usr/bin/multitail
find /usr/local/doc -maxdepth 1 -type d -name "multitail-*" \
-exec rm -r {} \;
( cd /usr/local/man/man1 ; rm -f multitail.1 multitail.1.gz )
find /usr/local/share/doc -maxdepth 1 -type d -name "multitail-*" \
-exec rm -r {} \;
( cd /usr/local/share/man/man1 ; rm -f multitail.1 multitail.1.gz )

# Install it
# (if you don't have/want/need coreutils' install, just use mkdir, cp,
# chmod, etc. instead)
install -m 0755 -s ./multitail /usr/local/bin/
install -d -m 0755 /usr/local/doc/multitail-6.0
install -m 0644 ./*.txt ./INSTALL ./manual*.html \
/usr/local/doc/multitail-6.0/
install -d -m 0755 /usr/local/etc/multitail
install -m 0644 ./multitail.conf /usr/local/etc/multitail/multitail.conf.dist
install -m 0644 ./convert-* ./colors-* /usr/local/etc/multitail/
gzip -cf9 ./multitail.1 > ./multitail.1.gz
install -m 0644 ./multitail.1.gz /usr/local/man/man1/

# To set up a new multitail.conf, copy the *.dist one to multitail.conf
test ! -f /usr/local/etc/multitail/multitail.conf &&
cp -a /usr/local/etc/multitail/multitail.conf.dist \
  /usr/local/etc/multitail/multitail.conf

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/multitail-*.tgz
mv multitail-6.0.tgz installed/


# If you ever want to uninstall multitail, this should do it:
cd
su
test -d src/multitail-* && ( cd src/multitail-* ; make uninstall )
test -d /usr/local/doc/multitail-6.0 && rm -r /usr/local/doc/multitail-6.0
test -d /usr/local/etc/multitail && rm -r /usr/local/etc/multitail
rm -f /usr/local/bin/multitail /usr/local/man/man1/multitail.1.gz
exit
find ~/src -maxdepth 1 -type d -name "multitail-*" -exec rm -r {} \;
rm -f ~/installed/multitail-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2013-12-06 9:54am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]