Hayato Imai > Mojolicious-Plugin-Webtail-0.04 > mwtail

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

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Mojolicious-Plugin-Webtail-0.06

NAME ^

mwtail - display tail to your browser

SYNOPSIS ^

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

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

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: