|
NAMEsince - display content of a file since the last timeSYNOPSISsince [-aefhlmnqvxz] [-d seconds] [-s file] filesDESCRIPTIONsince is a utility designed to monitor log files. since is similar to tail(2) as it also displays information appended to a file. However since only displays the data which has been added since the last time since was run. If since is run on a particular file for the first time, then the entire file is displayed.EXAMPLEsince /var/log/apache/{access,error}_log > /dev/nulllynx --dump http://localhost/ > /dev/null since /var/log/apache/{access,error}_log OPTIONS
FILES.sinceState file recording the length of the previously
displayed files. The location of the file can be set on the command line using
the -s option. If this option is not given, since will check the
SINCE environment variable for the location of the state file. If the
SINCE environment variable has not been set since will use the
HOME environment variable and store the information in the file
$HOME/.since. If the HOME variable is not set, since will
use a getpwuid(3) lookup. If all these fail will use the file
/tmp/since.
BUGSsince uses the inode of a file as its key, if that inode is recycled since will get confused. since is not particularly efficient when storing or looking up the stat(2) information. Functionality equivalent to since can probably be achieved with a number of trivial shell scripts.COPYINGsince may only be used, distributed and modified in accordance with the terms of the GPL (GNU General Public License) version 3 or newer as published by the FSF (Free Software Foundation).SEE ALSOtail(1), stat(2).
Visit the GSP FreeBSD Man Page Interface. |