mwtail - display tail to your browser
$ tail -f /path/to/logfile | mwtail
mwtail displays tail to your browser
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.
file
STDIN
$ mwtail --file=/path/to/logfile
--webtailrc
define your custom callback in webtail file.
webtail
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.
hayajo <hayajo@cpan.org>
https://github.com/r7kamura/webtail
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mojolicious::Plugin::Webtail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Webtail
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Webtail
For more information on module installation, please visit the detailed CPAN module installation guide.