Hayato Imai > Mojolicious-Plugin-Webtail > mwtail

Download:
Mojolicious-Plugin-Webtail-0.06.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

mwtail - display tail to your browser

SYNOPSIS ^

  $ tail -f /path/to/logfile | mwtail

  or

  $ mwtail --file=/var/log/something.log

DESCRIPTION ^

mwtail displays tail to your browser

OPTIONS ^

mwtail supports the following options.

and supports Mojolicious::Command::daemon options too.

-h|--help

show this.

--file

displays the contents of file or, by default, its STDIN.

  $ mwtail --file=/path/to/logfile

--webtailrc

define your custom callback in webtail file.

the code in webtail file is executed when a new line is inserted.

  $ tail -f /path/to/logfile | mwtail --webtailrc=/path/to/webtailrc

mwtail will find webtailrc in the following order.

1. --webtailrc option
2. $ENV{HOME}/.webtailrc

--tail-opts

define tail command options, by default, "-f -n 0"

  $ mwtail --tail-opts="-F -n 0"

-v|--verbose

turn on chatty output.

  $ mwtail --verbose

AUTHOR ^

hayajo <hayajo@cpan.org>

SEE ALSO ^

https://github.com/r7kamura/webtail

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: