since1
Display content of a file since the last time
Usage
since [-aefhlmnqvxz]
[-d
seconds]
[-s
file]
files
Overview
since 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.
Examples
since /var/log/apache/{access,error}_log > /dev/null
lynx --dump http://localhost/ > /dev/null
since /var/log/apache/{access,error}_log
Options
-
-a -
Make updates to the since state files atomic. This option configures
sinceto use a temporary file and a rename(2) instead of updating the state file in situ.
-
-d seconds -
Specify the number of integer seconds to wait between polling files for changes. This option is only relevant in conjunction with the
-foption and if the inotify mechanism is not being used.
-
-e -
Print the header lines to standard error instead of standard output.
-
-f -
Follow the specified files. This option is analogous to tail -f as the files are also polled for changes until the process is interrupted.
-
-h -
Print a terse help message.
-
-l -
Relaxed mode. If some data files are inaccessible
sincewill not fail completely.
-
-n -
Do not update the .since file which keeps track of file growth.
-
-q -
Make the utility operate more quietly.
-
-s filename -
Specify the state file explicitly. Using this option will also disable the use of fallback state files.
-
-v -
Increase the verbosity. This option can be given multiple times.
-
-x -
Ignore file arguments which have compressed extensions.
-
-z -
Discard output. Similar to redirecting the output to /dev/null, but faster. If used in conjunction with the
-foption, only the initial output will be discarded.
Files
.since
State 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.
Copying
since 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).
History
- Debian 13 (Trixie) to Debian 6.0 (Squeeze): the text shown here
- Debian 5.0 (Lenny) to Debian 3.1 (Sarge)
- Debian 3.0 (Woody)
- Debian 2.2 (Potato)
-a since Debian 6.0 (Squeeze);
-d since Debian 6.0 (Squeeze);
-e since Debian 6.0 (Squeeze);
-f since Debian 6.0 (Squeeze);
-l since Debian 6.0 (Squeeze);
-m since Debian 6.0 (Squeeze);
-q since Debian 3.1 (Sarge);
-s since Debian 6.0 (Squeeze);
-x since Debian 3.1 (Sarge);
-z since Debian 6.0 (Squeeze).