1SINCE(1)                         User Manuals                         SINCE(1)
2
3
4

NAME

6       since - display content of a file since the last time
7

SYNOPSIS

9       since [-aefhlmnqvxz] [-d seconds] [-s file] files
10
11

DESCRIPTION

13       since  is a utility designed to monitor log files.  since is similar to
14       tail(2) as it also displays information appended to  a  file.   However
15       since  only  displays the data which has been added since the last time
16       since was run. If since is run on a particular file for the first time,
17       then the entire file is displayed.
18

EXAMPLE

20       since /var/log/apache/{access,error}_log > /dev/null
21       lynx --dump http://localhost/ > /dev/null
22       since /var/log/apache/{access,error}_log
23
24

OPTIONS

26       -a     Make  updates  to the since state files atomic. This option con‐
27              figures since to use a temporary file and a rename(2) instead of
28              updating the state file in situ.
29
30
31       -d seconds
32              Specify  the  number  of integer seconds to wait between polling
33              files for changes. This option is only relevant  in  conjunction
34              with  the  -f  option  and if the inotify mechanism is not being
35              used.
36
37
38       -e     Print the header lines to standard  error  instead  of  standard
39              output.
40
41
42       -f     Follow  the specified files. This option is analogous to tail -f
43              as the files are also polled for changes until  the  process  is
44              interrupted.
45
46
47       -h     Print a terse help message.
48
49
50       -l     Relaxed mode. If some data files are inaccessible since will not
51              fail completely.
52
53
54       -m     Disable mmap(2), use read(2) instead to access  state  and  data
55              files.   Note that for certain smaller io operations read(2) may
56              be used even if this option has not been given.
57
58
59       -n     Do not update the .since file which keeps track of file growth.
60
61
62       -q     Make the utility operate more quietly.
63
64
65       -s filename
66              Specify the state file explicitly. Using this option  will  also
67              disable the use of fallback state files.
68
69
70       -v     Increase the verbosity. This option can be given multiple times.
71
72
73       -x     Ignore file arguments which have compressed extensions.
74
75
76       -z     Discard  output. Similar to redirecting the output to /dev/null,
77              but faster. If used in conjunction with the -f option, only  the
78              initial output will be discarded.
79
80

FILES

82       .since
83
84              State  file  recording  the  length  of the previously displayed
85              files.  The location of the file can be set on the command  line
86              using  the  -s  option.  If this option is not given, since will
87              check the SINCE environment variable for  the  location  of  the
88              state  file.  If the SINCE environment variable has not been set
89              since will use the  HOME  environment  variable  and  store  the
90              information  in  the file $HOME/.since.  If the HOME variable is
91              not set, since will use a getpwuid(3) lookup. If all these  fail
92              will use the file /tmp/since.
93
94

BUGS

96       since  uses  the  inode of a file as its key, if that inode is recycled
97       since will get confused.  since  is  not  particularly  efficient  when
98       storing or looking up the stat(2) information. Functionality equivalent
99       to since can probably be  achieved  with  a  number  of  trivial  shell
100       scripts.
101
102

COPYING

104       since may only be used, distributed and modified in accordance with the
105       terms of the GPL (GNU General Public License) version  3  or  newer  as
106       published by the FSF (Free Software Foundation).
107

SEE ALSO

109       tail(1), stat(2).
110
111
112
113Linux                              JULY 1998                          SINCE(1)
Impressum