site-josuah

/usr/josuah
Log | Files | Refs

commit 3e5b90a66164881c82eb8936302998c259a54309
parent 39e2e1d423ac5e1f39e8189c865133b5ecd3dde5
Author: Josuah Demangeon <me@josuah.net>
Date:   Mon, 20 Apr 2020 22:05:08 +0200

update jj-tail and document it further

Diffstat:
Mwiki/jj/index.md | 22++++++++++++++++------
Mwiki/jj/jj-tail | 2+-
2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/wiki/jj/index.md b/wiki/jj/index.md @@ -219,9 +219,9 @@ beginning, with the same "==> filename <==" header. *not in original jj package* -Instead of going with tmux for handling all the log files to follow, I went -with the approach of reading all channels of all networks in a same stream, -showing a headers for each channel (at least in my fork of jjp): +Instead of going with one window per chatroom and switching between chatrooms, +jj-tail gives a combined feed with the output of all channels in a same stream +showing a headers for each channel. == irc.freenode.net/##networking == 00:12 ikityik: it's like having a bad fever dream with this ISP @@ -234,11 +234,21 @@ showing a headers for each channel (at least in my fork of jjp): To avoid being bothered with too many channels at once, it takes a list of find(1) -path $filters as argument that will match the name of the -server/channels. +server/channels: + + $ jj-tail + <log of all channels of all servers ...> + ^C + $ jj-tail freenode + <log of all channels of freenode/* ...> + ^C + $ jj-tail qmail smtp + <log of freenode/#qmail freenode/#opensmtpd ...> + ^C + $ jj-tail server + <server logs of all channels follows (wich hilights) ...> This way, you can reduce the scope of the conversation to one server, similar channels on multiple servers, just the selected channels... -This tool makes use of jj-log and retail. - [jj-tail]: /wiki/jj/jj-tail diff --git a/wiki/jj/jj-tail b/wiki/jj/jj-tail @@ -10,5 +10,5 @@ done shift # remove the leading -o # First print the history then print the live log -exec find "/var/irc" "$@" -exec retail {} + -exec tail -f -n 0 {} + \ +exec find "/var/irc" \( "$@" \) -exec retail {} + -exec tail -f -n 0 {} + \ | exec jj-log