DIRTAIL(1) User Contributed Perl Documentation DIRTAIL(1)NAMEdirtail - follow tail on all files in a directory
SYNOPSISdirtail [-W] [-f min] [-r sec] [-p 'pat'] [dir ...]
DESCRIPTION
For each operand that names a directory start following the tail on all
files that has a modification time newer then min or that is being
created since program start.
-f min How Fresh files should we start tailing at startup. (value in
integer minutes, default is 10).
-r sec How often to Reread directory listing. (value in integer
seconds, default is 5)
-W Don't Wrap lines
-p 'pat' File name Pattern (default is *.log). Remember to quote globs.
dir directory to monitor (default is . ).
EXAMPLEdirtail
dirtail -W -f 15 -r 10 -p '*.log'
dirtail dir1 dir2 dir3
NOTICE
Sometimes the clock of cygwin gets out of sync with windows system
clock. The solution is to increase -r sec.
Windows also has another weirdness. Sometimes the modification time
stamps on files and directories stops getting updated (a performance
tweek I guess). This also effectively stops dirtail from doing a proper
job. ( see
http://social.technet.microsoft.com/Forums/en-US/winservergen/Thread/2B8BACA2-9C1B-4D80-80ED-87A3D6B1336F
and
http://blogs.technet.com/b/asiasupp/archive/2010/12/14/file-date-modified-property-are-not-updating-while-modifying-a-file-without-closing-it.aspx
)
By default dirtail usedes *.log as file matching pattern. This is
because we don't want dump files to be displayed.
TODOdirtail is lacking support for files and directories containing spaces.
perl v5.10.0 2011-10-10 DIRTAIL(1)