The s6-tai64nlocal program
s6-tai64nlocal acts as a filter, reading from stdin and writing to stdout.
For every line that begins with a
timestamp, it replaces this timestamp with a human-readable local date and
s6-tai64nlocal [ -g ]
- s6-tai64nlocal exits 0 when it sees the end of stdin. If there's an
unfinished line, s6-tai64n processes it
and writes it before exiting.
- -g : print GMT time instead of local time.
- The typical use case of s6-tai64nlocal is to read files that have
been filtered through s6-tai64n, or log files
that have been produced by s6-log with the -t
option. For instance, to read the latest httpd logs with human-readable
timestamps, s6-tai64nlocal < /var/log/httpd/current | less is a
- s6-tai64nlocal does neither "line buffering" nor "block buffering". It does
optimal buffering, i.e. it flushes its output buffer every time
it risks blocking on input.
If s6-tai64nlocal does not appear to give the correct local time:
- Check the compilation options that were used for the
your s6-tai64nlocal program was linked against. In particular, check whether the
--enable-tai-clock or --enable-right-tz configure options
have been given.
- Compare these flags and their meanings with your current timezone. In particular,
check /etc/localtime, /etc/timezone, /etc/TZ, and the TZ