lwatch-cvs Mailing List for Log Watcher (Page 8)
Brought to you by:
arturcz
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(22) |
Aug
(11) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(5) |
Feb
(29) |
Mar
(85) |
Apr
(45) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2004 |
Jan
(30) |
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(55) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2005 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
(6) |
Mar
(12) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
| 2010 |
Jan
|
Feb
(15) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ar...@us...> - 2003-04-04 21:16:16
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv31270 Modified Files: TODO Log Message: - TODO update Index: TODO =================================================================== RCS file: /cvsroot/lwatch/files/TODO,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** TODO 4 Apr 2003 15:38:59 -0000 1.16 --- TODO 4 Apr 2003 21:16:11 -0000 1.17 *************** *** 3,13 **** Now (for 0.3): - - create fifo (if needed by user) - - proper signal handling - configure: docbook2man (docbook-utils) support - full color support (dark and light colors) Later: ! - debug messages should be printed to stderr - configure: --with-pcre support - documentation for lwatch.conf --- 3,12 ---- Now (for 0.3): - configure: docbook2man (docbook-utils) support - full color support (dark and light colors) Later: ! - signal handling - it still not works so good as it should ! - debug/error messages should be printed to stderr - configure: --with-pcre support - documentation for lwatch.conf *************** *** 23,26 **** --- 22,30 ---- - take color codes from termcap (slang? ncurses?) - dealing with ip's in logs + + Maybe: + - create fifo (if needed by user) + I dont know is it really needed. I think rather not. Possibly this item + will be removed soon. If you have any feature request not presented here look at: |
|
From: <ar...@us...> - 2003-04-04 21:06:31
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27586
Modified Files:
control.c lwatch.c
Log Message:
- remove all syslog stuff
Index: control.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/control.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** control.c 4 Apr 2003 18:47:19 -0000 1.14
--- control.c 4 Apr 2003 21:06:29 -0000 1.15
***************
*** 34,38 ****
#include <stdio.h>
#include <stdlib.h>
- #include <syslog.h>
#include <sys/poll.h>
--- 34,37 ----
***************
*** 66,75 ****
break;
}
- syslog(LOG_NOTICE,"Received signal %i%s\n",i,loop?"":" - exiting");
#ifdef DEBUG
printf("Received signal %i%s\n",i,loop?"":" - exiting");
#endif
if(ex) {
- syslog(LOG_WARNING,"Received signal %i%s\n",i,loop?"":" - exiting");
die("Received signal %i%s\n",i,loop?"":" - exiting");
}
--- 65,72 ----
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** lwatch.c 4 Apr 2003 18:39:43 -0000 1.19
--- lwatch.c 4 Apr 2003 21:06:29 -0000 1.20
***************
*** 34,38 ****
#include <stdlib.h>
#include <string.h>
- #include <syslog.h>
#include <unistd.h>
--- 34,37 ----
***************
*** 57,62 ****
checkeof=0;
- openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
- syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
--- 56,59 ----
***************
*** 137,142 ****
free_parser();
free_settings();
- syslog(LOG_INFO,"normal exitting");
- closelog();
exit(0);
}
--- 134,137 ----
|
|
From: <ar...@us...> - 2003-04-04 19:12:07
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv2311
Modified Files:
control.c
Log Message:
- better signal handling
- debug messages to syslog
Index: control.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/control.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** control.c 4 Apr 2003 18:38:49 -0000 1.13
--- control.c 4 Apr 2003 18:47:19 -0000 1.14
***************
*** 55,61 ****
ex=0;
switch(i) {
! case SIGTERM:
! case SIGINT:
! case SIGHUP:
loop=0;
break;
--- 55,62 ----
ex=0;
switch(i) {
! case SIGHUP: /* 1 */
! case SIGINT: /* 2 */
! case SIGQUIT: /* 3 */
! case SIGTERM: /* 15 */
loop=0;
break;
***************
*** 69,73 ****
printf("Received signal %i%s\n",i,loop?"":" - exiting");
#endif
! if(ex) die("Received signal %i%s\n",i,loop?"":" - exiting");
}
--- 70,77 ----
printf("Received signal %i%s\n",i,loop?"":" - exiting");
#endif
! if(ex) {
! syslog(LOG_WARNING,"Received signal %i%s\n",i,loop?"":" - exiting");
! die("Received signal %i%s\n",i,loop?"":" - exiting");
! }
}
|
|
From: <ar...@us...> - 2003-04-04 18:39:48
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv32169
Modified Files:
lwatch.c
Log Message:
- syslog debug message
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** lwatch.c 4 Apr 2003 18:35:11 -0000 1.18
--- lwatch.c 4 Apr 2003 18:39:43 -0000 1.19
***************
*** 57,62 ****
checkeof=0;
! openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
! syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
--- 57,62 ----
checkeof=0;
! openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
! syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
***************
*** 137,141 ****
free_parser();
free_settings();
! closelog();
exit(0);
}
--- 137,142 ----
free_parser();
free_settings();
! syslog(LOG_INFO,"normal exitting");
! closelog();
exit(0);
}
|
|
From: <ar...@us...> - 2003-04-04 18:38:54
|
Update of /cvsroot/lwatch/files/src In directory sc8-pr-cvs1:/tmp/cvs-serv31830 Modified Files: control.c Log Message: - exit on window close Index: control.c =================================================================== RCS file: /cvsroot/lwatch/files/src/control.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** control.c 4 Apr 2003 18:35:10 -0000 1.12 --- control.c 4 Apr 2003 18:38:49 -0000 1.13 *************** *** 57,60 **** --- 57,61 ---- case SIGTERM: case SIGINT: + case SIGHUP: loop=0; break; |
|
From: <ar...@us...> - 2003-04-04 18:35:18
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv30119
Modified Files:
control.c lwatch.c
Log Message:
- syslog support (for debugging puprpose, will be removed)
Index: control.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/control.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** control.c 8 Aug 2002 14:35:24 -0000 1.11
--- control.c 4 Apr 2003 18:35:10 -0000 1.12
***************
*** 34,37 ****
--- 34,38 ----
#include <stdio.h>
#include <stdlib.h>
+ #include <syslog.h>
#include <sys/poll.h>
***************
*** 63,66 ****
--- 64,68 ----
break;
}
+ syslog(LOG_NOTICE,"Received signal %i%s\n",i,loop?"":" - exiting");
#ifdef DEBUG
printf("Received signal %i%s\n",i,loop?"":" - exiting");
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** lwatch.c 4 Apr 2003 18:29:14 -0000 1.17
--- lwatch.c 4 Apr 2003 18:35:11 -0000 1.18
***************
*** 34,38 ****
#include <stdlib.h>
#include <string.h>
! #include <syslog.h>
#include <unistd.h>
--- 34,38 ----
#include <stdlib.h>
#include <string.h>
! #include <syslog.h>
#include <unistd.h>
***************
*** 57,62 ****
checkeof=0;
! openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
! syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
--- 57,62 ----
checkeof=0;
! openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
! syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
***************
*** 137,141 ****
free_parser();
free_settings();
! closelog();
exit(0);
}
--- 137,141 ----
free_parser();
free_settings();
! closelog();
exit(0);
}
|
|
From: <ar...@us...> - 2003-04-04 18:29:19
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27716
Modified Files:
lwatch.c
Log Message:
- erm, remove crap
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** lwatch.c 4 Apr 2003 15:11:42 -0000 1.16
--- lwatch.c 4 Apr 2003 18:29:14 -0000 1.17
***************
*** 34,37 ****
--- 34,38 ----
#include <stdlib.h>
#include <string.h>
+ #include <syslog.h>
#include <unistd.h>
***************
*** 56,59 ****
--- 57,62 ----
checkeof=0;
+ openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
+ syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
***************
*** 79,85 ****
#endif
} else {
- printf("raz\n");
stdout=freopen(lw_conf.out_file,"w",stdout);
- printf("dwa\n");
/* io_check(fd=open(lw_conf.out_file,O_WRONLY),lw_conf.out_file); */
#ifdef DEBUG
--- 82,86 ----
***************
*** 136,139 ****
--- 137,141 ----
free_parser();
free_settings();
+ closelog();
exit(0);
}
|
|
From: <ar...@us...> - 2003-04-04 16:46:32
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv21339
Modified Files:
yparse.l
Log Message:
- typo
Index: yparse.l
===================================================================
RCS file: /cvsroot/lwatch/files/src/yparse.l,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** yparse.l 4 Apr 2003 15:11:46 -0000 1.16
--- yparse.l 4 Apr 2003 16:46:25 -0000 1.17
***************
*** 101,105 ****
<*>{COMMENT} ; /* Skip comments */
<INITIAL>input_fifo= {
! printf("lwatch.conf: OPTION input_fifo IN LINE %i IS DEPRECATED.\n.USE input_file INSTEAD IT.\n",lineno);
yypch=lw_conf.in_file;
#ifdef DEBUG
--- 101,105 ----
<*>{COMMENT} ; /* Skip comments */
<INITIAL>input_fifo= {
! printf("lwatch.conf: OPTION input_fifo IN LINE %i IS DEPRECATED.\nUSE input_file INSTEAD IT.\n",lineno);
yypch=lw_conf.in_file;
#ifdef DEBUG
|
|
From: <ar...@us...> - 2003-04-04 15:39:05
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv23186 Modified Files: TODO Log Message: - changing priority of some new feaures :) Index: TODO =================================================================== RCS file: /cvsroot/lwatch/files/TODO,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** TODO 4 Apr 2003 15:11:40 -0000 1.15 --- TODO 4 Apr 2003 15:38:59 -0000 1.16 *************** *** 6,13 **** - proper signal handling - configure: docbook2man (docbook-utils) support Later: - debug messages should be printed to stderr - - full color support (dark and light colors) - configure: --with-pcre support - documentation for lwatch.conf --- 6,13 ---- - proper signal handling - configure: docbook2man (docbook-utils) support + - full color support (dark and light colors) Later: - debug messages should be printed to stderr - configure: --with-pcre support - documentation for lwatch.conf |
|
From: <ar...@us...> - 2003-04-04 15:36:28
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv22165 Modified Files: README Log Message: - formatting - some new informations Index: README =================================================================== RCS file: /cvsroot/lwatch/files/README,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** README 1 Apr 2003 18:53:17 -0000 1.13 --- README 4 Apr 2003 15:36:21 -0000 1.14 *************** *** 25,30 **** modified. ! System manual has been written in SGML DocBook. You need some kind (any) docbook->man converter to generate proper manual page. For now, configure supports ! only docbook-to-man available at: http://www.oasis-open.org/docbook/tools/dtm/docbook-to-man.tar.gz --- 25,31 ---- modified. ! System manual has been written in SGML DocBook. You need some kind (any) ! docbook->man converter to generate proper manual page. For now, configure ! supports only docbook-to-man available at: http://www.oasis-open.org/docbook/tools/dtm/docbook-to-man.tar.gz *************** *** 60,65 **** configuration file during package installation? ! If you add this piece of software into any distribution do me a favour ! and, please, send me an email notice about it. You can find my email address in AUTHORS file. --- 61,66 ---- configuration file during package installation? ! If you add this piece of software into any distribution as a package do me ! a favour and, please, send me an email notice about it. You can find my email address in AUTHORS file. *************** *** 76,81 **** Use `gmake' instead of `make' ! * Linux No additional packages required. * Solaris - not tested --- 77,85 ---- Use `gmake' instead of `make' ! * Linux on i386 No additional packages required. + + * Linux on other architectures + No experiences. Feedback mostly welcomed. * Solaris - not tested |
|
From: <ar...@us...> - 2003-04-04 15:28:25
|
Update of /cvsroot/lwatch/files/src In directory sc8-pr-cvs1:/tmp/cvs-serv18736 Modified Files: lwatch.conf Log Message: - typo Index: lwatch.conf =================================================================== RCS file: /cvsroot/lwatch/files/src/lwatch.conf,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** lwatch.conf 4 Apr 2003 15:11:42 -0000 1.16 --- lwatch.conf 4 Apr 2003 15:28:21 -0000 1.17 *************** *** 20,24 **** # Where to print colored logs? ! # Any filename accepted, especially /dev/tty* if you want to output into # console output_file=/dev/tty11 --- 20,24 ---- # Where to print colored logs? ! # Any filename accepted, especially /dev/tty*, put - if you want to output into # console output_file=/dev/tty11 |
|
From: <ar...@us...> - 2003-04-04 15:12:18
|
Update of /cvsroot/lwatch/files/doc
In directory sc8-pr-cvs1:/tmp/cvs-serv9220/doc
Modified Files:
lwatch.1.in lwatch.sgml
Log Message:
- --fifo and -f are deprecated, use --input and -i instead
- new options for output file (-o and --output)
- -o means output file, use -O for omit config file
- fifo_file in configuration file is deprecated, use input_file instead it
- new option output_file in configuration
Index: lwatch.1.in
===================================================================
RCS file: /cvsroot/lwatch/files/doc/lwatch.1.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** lwatch.1.in 25 Mar 2003 13:15:48 -0000 1.11
--- lwatch.1.in 4 Apr 2003 15:11:40 -0000 1.12
***************
*** 59,63 ****
.SH "SYNOPSIS"
.PP
! \fBlwatch\fP [-C \fIfilename\fP] [--config \fIfilename\fP] [-f \fIfilename\fP] [--fifo \fIfilename\fP] [-soh] [--show-unparsed] [--omit-rc] [--help]
.SH "Description"
.PP
--- 59,63 ----
.SH "SYNOPSIS"
.PP
! \fBlwatch\fP [-C \fIfilename\fP] [--config \fIfilename\fP] [-i \fIfilename\fP] [--input \fIfilename\fP] [-o \fIfilename\fP] [--output \fIfilename\fP] [-sOhv] [--show-unparsed] [--omit-rc] [--help]
.SH "Description"
.PP
***************
*** 92,107 ****
.IP "\fB--config \fIfilename\fP\fP" 10
read config from filename instead of @CONFDIR@/lwatch.conf
! .IP "\fB-f \fIfilename\fP\fP" 10
! .IP "\fB--fifo \fIfilename\fP\fP" 10
read data from named fifo filename instead of @INPUTFILE@
.IP "\fB-s\fP" 10
.IP "\fB--show-unparsed\fP" 10
show unparsed lines like `last message repeated 5 times' or `--- MARK ---'
! .IP "\fB-o\fP" 10
.IP "\fB--omit-rc\fP" 10
do not read values from config file
.IP "\fB-h\fP" 10
.IP "\fB--help\fP" 10
! show help about runtime option
.SH "Running"
.PP
--- 92,113 ----
.IP "\fB--config \fIfilename\fP\fP" 10
read config from filename instead of @CONFDIR@/lwatch.conf
! .IP "\fB-i \fIfilename\fP\fP" 10
! .IP "\fB--input \fIfilename\fP\fP" 10
read data from named fifo filename instead of @INPUTFILE@
+ .IP "\fB-o \fIfilename\fP\fP" 10
+ .IP "\fB--output \fIfilename\fP\fP" 10
+ write colored logs to filename instead of standard output
.IP "\fB-s\fP" 10
.IP "\fB--show-unparsed\fP" 10
show unparsed lines like `last message repeated 5 times' or `--- MARK ---'
! .IP "\fB-O\fP" 10
.IP "\fB--omit-rc\fP" 10
do not read values from config file
.IP "\fB-h\fP" 10
.IP "\fB--help\fP" 10
! show help about runtime option
! .IP "\fB-v\fP" 10
! .IP "\fB--version\fP" 10
! show version and copyright notices
.SH "Running"
.PP
***************
*** 133,137 ****
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
log { source(src); destination(console_all);};
! destination console_all {program("@BINDIR@/lwatch -f- > /dev/tty11"); };
.fi
--- 139,143 ----
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
log { source(src); destination(console_all);};
! destination console_all {program("@BINDIR@/lwatch -i- -o/dev/tty11"); };
.fi
***************
*** 150,152 ****
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
! ...\" created by instant / docbook-to-man, Tue 25 Mar 2003, 13:12
--- 156,158 ----
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
! ...\" created by instant / docbook-to-man, Fri 04 Apr 2003, 16:16
Index: lwatch.sgml
===================================================================
RCS file: /cvsroot/lwatch/files/doc/lwatch.sgml,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** lwatch.sgml 24 Mar 2003 14:23:40 -0000 1.14
--- lwatch.sgml 4 Apr 2003 15:11:41 -0000 1.15
***************
*** 53,59 ****
<arg>-C <replaceable>filename</replaceable></arg>
<arg>--config <replaceable>filename</replaceable></arg>
! <arg>-f <replaceable>filename</replaceable></arg>
! <arg>--fifo <replaceable>filename</replaceable></arg>
! <arg>-<!-- c -->soh</arg>
<!--
<arg>- -create-fifo</arg>
--- 53,61 ----
<arg>-C <replaceable>filename</replaceable></arg>
<arg>--config <replaceable>filename</replaceable></arg>
! <arg>-i <replaceable>filename</replaceable></arg>
! <arg>--input <replaceable>filename</replaceable></arg>
! <arg>-o <replaceable>filename</replaceable></arg>
! <arg>--output <replaceable>filename</replaceable></arg>
! <arg>-<!-- c -->sOhv</arg>
<!--
<arg>- -create-fifo</arg>
***************
*** 107,112 ****
</varlistentry>
<varlistentry>
! <term><option>-f <replaceable>filename</replaceable></option></term>
! <term><option>--fifo <replaceable>filename</replaceable></option></term>
<listitem>
<para>read data from named fifo filename instead of &infile;</para>
--- 109,114 ----
</varlistentry>
<varlistentry>
! <term><option>-i <replaceable>filename</replaceable></option></term>
! <term><option>--input <replaceable>filename</replaceable></option></term>
<listitem>
<para>read data from named fifo filename instead of &infile;</para>
***************
*** 114,117 ****
--- 116,126 ----
</varlistentry>
<varlistentry>
+ <term><option>-o <replaceable>filename</replaceable></option></term>
+ <term><option>--output <replaceable>filename</replaceable></option></term>
+ <listitem>
+ <para>write colored logs to filename instead of standard output</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term><option>-s</option></term>
<term><option>--show-unparsed</option></term>
***************
*** 121,125 ****
</varlistentry>
<varlistentry>
! <term><option>-o</option></term>
<term><option>--omit-rc</option></term>
<listitem>
--- 130,134 ----
</varlistentry>
<varlistentry>
! <term><option>-O</option></term>
<term><option>--omit-rc</option></term>
<listitem>
***************
*** 134,137 ****
--- 143,153 ----
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>-v</option></term>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>show version and copyright notices</para>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
***************
*** 166,170 ****
<literallayout>
log { source(src); destination(console_all);};
! destination console_all {program("&bin; -f- > /dev/tty11"); };
</literallayout>
</para>
--- 182,186 ----
<literallayout>
log { source(src); destination(console_all);};
! destination console_all {program("&bin; -i- -o/dev/tty11"); };
</literallayout>
</para>
|
|
From: <ar...@us...> - 2003-04-04 15:12:17
|
Update of /cvsroot/lwatch/files
In directory sc8-pr-cvs1:/tmp/cvs-serv9220
Modified Files:
ChangeLog TODO
Log Message:
- --fifo and -f are deprecated, use --input and -i instead
- new options for output file (-o and --output)
- -o means output file, use -O for omit config file
- fifo_file in configuration file is deprecated, use input_file instead it
- new option output_file in configuration
Index: ChangeLog
===================================================================
RCS file: /cvsroot/lwatch/files/ChangeLog,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ChangeLog 4 Apr 2003 12:10:21 -0000 1.14
--- ChangeLog 4 Apr 2003 15:11:39 -0000 1.15
***************
*** 1,3 ****
! 0.3: - new tests in ./configure for getopt_long (arturcz)
- handle EOF - reopen fifo, close when input from stdin (arturcz)
- FreeBSD port (arturcz)
--- 1,9 ----
! 0.3: - --fifo and -f are deprecated, use --input and -i instead (arturcz)
! - new options for output file (-o and --output) (arturcz)
! - -o means output file, use -O for omit config file (arturcz)
! - fifo_file in configuration file is deprecated, use input_file
! instead it (arturcz
! - new option output_file in configuration (arturcz)
! - new tests in ./configure for getopt_long (arturcz)
- handle EOF - reopen fifo, close when input from stdin (arturcz)
- FreeBSD port (arturcz)
Index: TODO
===================================================================
RCS file: /cvsroot/lwatch/files/TODO,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** TODO 30 Mar 2003 19:26:30 -0000 1.14
--- TODO 4 Apr 2003 15:11:40 -0000 1.15
***************
*** 5,12 ****
- create fifo (if needed by user)
- proper signal handling
- - option for output file
- configure: docbook2man (docbook-utils) support
Later:
- full color support (dark and light colors)
- configure: --with-pcre support
--- 5,12 ----
- create fifo (if needed by user)
- proper signal handling
- configure: docbook2man (docbook-utils) support
Later:
+ - debug messages should be printed to stderr
- full color support (dark and light colors)
- configure: --with-pcre support
|
|
From: <ar...@us...> - 2003-04-04 15:11:57
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv9220/src
Modified Files:
defaults.h lwatch.c lwatch.conf settings.c settings.h yparse.l
Log Message:
- --fifo and -f are deprecated, use --input and -i instead
- new options for output file (-o and --output)
- -o means output file, use -O for omit config file
- fifo_file in configuration file is deprecated, use input_file instead it
- new option output_file in configuration
Index: defaults.h
===================================================================
RCS file: /cvsroot/lwatch/files/src/defaults.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** defaults.h 27 Mar 2003 16:08:18 -0000 1.6
--- defaults.h 4 Apr 2003 15:11:42 -0000 1.7
***************
*** 41,43 ****
--- 41,44 ----
#define DEF_CONF_FILE SYSCONFDIR "/lwatch.conf"
#define DEF_IN_FILE INPUTFILE
+ #define DEF_OUT_FILE "-"
#define DEF_CREATE_FIFO YES
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** lwatch.c 4 Apr 2003 12:01:43 -0000 1.15
--- lwatch.c 4 Apr 2003 15:11:42 -0000 1.16
***************
*** 60,64 ****
set_handlers();
init_parser();
! if(strcmp(lw_conf.fifo_file,"-")==0) {
fd=0;
#ifdef DEBUG
--- 60,64 ----
set_handlers();
init_parser();
! if(strcmp(lw_conf.in_file,"-")==0) {
fd=0;
#ifdef DEBUG
***************
*** 67,75 ****
} else {
struct stat sbuf;
! io_check(stat(lw_conf.fifo_file,&sbuf),lw_conf.fifo_file);
if(!S_ISFIFO(sbuf.st_mode)) die("ERROR: Regular file are not supported for now. See manual for details\n");
! io_check(fd=open(lw_conf.fifo_file,O_RDONLY),lw_conf.fifo_file);
#ifdef DEBUG
! printf("Input from %s\n",lw_conf.fifo_file);
#endif
}
--- 67,88 ----
} else {
struct stat sbuf;
! io_check(stat(lw_conf.in_file,&sbuf),lw_conf.in_file);
if(!S_ISFIFO(sbuf.st_mode)) die("ERROR: Regular file are not supported for now. See manual for details\n");
! io_check(fd=open(lw_conf.in_file,O_RDONLY),lw_conf.in_file);
#ifdef DEBUG
! printf("Input from %s\n",lw_conf.in_file);
! #endif
! }
! if(strcmp(lw_conf.out_file,"-")==0) {
! #ifdef DEBUG
! printf("Output to stdout\n");
! #endif
! } else {
! printf("raz\n");
! stdout=freopen(lw_conf.out_file,"w",stdout);
! printf("dwa\n");
! /* io_check(fd=open(lw_conf.out_file,O_WRONLY),lw_conf.out_file); */
! #ifdef DEBUG
! printf("Output to %s\n",lw_conf.out_file);
#endif
}
***************
*** 89,96 ****
/* from fifo */
#ifdef DEBUG
! printf("syslog closed second end of fifo %s\nTrying to reopen\n",lw_conf.fifo_file);
#endif
/* trying to reopen or die */
! io_check(fd=open(lw_conf.fifo_file,O_RDONLY),lw_conf.fifo_file);
input.fd=fd;
} else {
--- 102,109 ----
/* from fifo */
#ifdef DEBUG
! printf("syslog closed second end of fifo %s\nTrying to reopen\n",lw_conf.in_file);
#endif
/* trying to reopen or die */
! io_check(fd=open(lw_conf.in_file,O_RDONLY),lw_conf.in_file);
input.fd=fd;
} else {
Index: lwatch.conf
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.conf,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** lwatch.conf 3 Apr 2003 14:11:36 -0000 1.15
--- lwatch.conf 4 Apr 2003 15:11:42 -0000 1.16
***************
*** 17,21 ****
# if filename - it should be name fifo, where syslogd logs
# - means: read from stdin (via tail -f logfile | lwatch )
! input_fifo=/tmp/test
# NOT SUPPORTED IN THIS RELEASE!
--- 17,26 ----
# if filename - it should be name fifo, where syslogd logs
# - means: read from stdin (via tail -f logfile | lwatch )
! input_file=/dev/lwatch # remember about configure your syslog
!
! # Where to print colored logs?
! # Any filename accepted, especially /dev/tty* if you want to output into
! # console
! output_file=/dev/tty11
# NOT SUPPORTED IN THIS RELEASE!
Index: settings.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/settings.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** settings.c 24 Mar 2003 14:23:41 -0000 1.18
--- settings.c 4 Apr 2003 15:11:43 -0000 1.19
***************
*** 94,99 ****
" -C, --config filename",
"\tread config from filename instead of " DEF_CONF_FILE ",",
! " -f, --fifo filename",
"\tread data from named fifo filename instead of " DEF_IN_FILE ",",
/*
" -c, --create-fifo",
--- 94,101 ----
" -C, --config filename",
"\tread config from filename instead of " DEF_CONF_FILE ",",
! " -i, --input filename",
"\tread data from named fifo filename instead of " DEF_IN_FILE ",",
+ " -o, --output filename",
+ "\twrite colored logs into filename instead of " DEF_OUT_FILE ",",
/*
" -c, --create-fifo",
***************
*** 102,106 ****
" -s, --show-unparsed",
"\tshows unparsed lines (like `last message repeated X times')",
! " -o, --omit-rc",
"\tdo not read values from config file",
" -h, --help",
--- 104,108 ----
" -s, --show-unparsed",
"\tshows unparsed lines (like `last message repeated X times')",
! " -O, --omit-rc",
"\tdo not read values from config file",
" -h, --help",
***************
*** 119,126 ****
{"version",0,0,'v'},
{"config",1,0,'C'},
! {"fifo",1,0,'f'},
{"create-fifo",0,0,'c'},
{"show-unparsed",0,0,'s'},
! {"omit-rc",0,0,'o'},
{"help",0,0,'h'},
{0,0,0,0}
--- 121,130 ----
{"version",0,0,'v'},
{"config",1,0,'C'},
! {"fifo",1,0,'f'}, /* FIXME: it should be removed in next releases */
! {"input",1,0,'i'},
! {"output",1,0,'o'},
{"create-fifo",0,0,'c'},
{"show-unparsed",0,0,'s'},
! {"omit-rc",0,0,'O'},
{"help",0,0,'h'},
{0,0,0,0}
***************
*** 136,140 ****
#endif
memset(&lw_conf,0,sizeof(lw_conf));
! while((c=getopt_long(argc,argv,"vC:f:cosh",opt,&idx))!=EOF) {
switch(c) {
case 'C':
--- 140,144 ----
#endif
memset(&lw_conf,0,sizeof(lw_conf));
! while((c=getopt_long(argc,argv,"vC:f:i:co:Osh",opt,&idx))!=EOF) {
switch(c) {
case 'C':
***************
*** 148,158 ****
}
break;
! case 'f':
if(strlen(optarg)>MAXPATHLEN) {
! die("Filename too long (%i bytes)\n",strlen(optarg));
} else {
! strncpy(lw_conf.fifo_file,optarg,MAXPATHLEN);
#ifdef DEBUG
! printf("Input file set to: %s\n",lw_conf.fifo_file);
#endif
}
--- 152,176 ----
}
break;
! case 'f':
! printf("USAGE OF --fifo AND -f IS DEPRECATED.\n");
! printf("PLEASE USE --input OR -i INSTEAD IT.\n");
! printf("OPTIONS --fifo AND -f ARE SUBJECTS TO REMOVE IN NEXT RELEASE.\n");
! case 'i':
if(strlen(optarg)>MAXPATHLEN) {
! die("Input filename too long (%i bytes)\n",strlen(optarg));
} else {
! strncpy(lw_conf.in_file,optarg,MAXPATHLEN);
#ifdef DEBUG
! printf("Input file set to: %s\n",lw_conf.in_file);
! #endif
! }
! break;
! case 'o':
! if(strlen(optarg)>MAXPATHLEN) {
! die("Output filename too long (%i bytes)\n",strlen(optarg));
! } else {
! strncpy(lw_conf.out_file,optarg,MAXPATHLEN);
! #ifdef DEBUG
! printf("Output file set to: %s\n",lw_conf.out_file);
#endif
}
***************
*** 170,174 ****
#endif
break;
! case 'o':
omit_config=1;
#ifdef DEBUG
--- 188,192 ----
#endif
break;
! case 'O':
omit_config=1;
#ifdef DEBUG
***************
*** 213,216 ****
--- 231,238 ----
#endif
fclose(yyin);
+ if(!strlen(lw_conf.in_file))
+ strncpy(lw_conf.in_file,DEF_IN_FILE,MAXPATHLEN);
+ if(!strlen(lw_conf.out_file))
+ strncpy(lw_conf.out_file,DEF_OUT_FILE,MAXPATHLEN);
#ifdef DEBUG
printf("date: %i, host: %i, serv: %i, mesg: %i\n",
Index: settings.h
===================================================================
RCS file: /cvsroot/lwatch/files/src/settings.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** settings.h 21 Mar 2003 15:35:53 -0000 1.8
--- settings.h 4 Apr 2003 15:11:43 -0000 1.9
***************
*** 36,40 ****
int def_date_color,def_host_color,def_serv_color,def_mesg_color;
char conf_file[MAXPATHLEN+1];
! char fifo_file[MAXPATHLEN+1];
int create_fifo;
int show_unparsed;
--- 36,41 ----
int def_date_color,def_host_color,def_serv_color,def_mesg_color;
char conf_file[MAXPATHLEN+1];
! char in_file[MAXPATHLEN+1];
! char out_file[MAXPATHLEN+1];
int create_fifo;
int show_unparsed;
Index: yparse.l
===================================================================
RCS file: /cvsroot/lwatch/files/src/yparse.l,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** yparse.l 21 Mar 2003 15:35:55 -0000 1.15
--- yparse.l 4 Apr 2003 15:11:46 -0000 1.16
***************
*** 69,73 ****
%option noyywrap
! M_KEYWORD input_fifo|create_fifo|show_unparsed
R_KEYCOLOR date_color|host_color|serv_color|mesg_color|color|highlight
R_KEYWORD match_service|match_host|ignore|exit
--- 69,73 ----
%option noyywrap
! M_KEYWORD input_fifo|input_file|output_file|create_fifo|show_unparsed
R_KEYCOLOR date_color|host_color|serv_color|mesg_color|color|highlight
R_KEYWORD match_service|match_host|ignore|exit
***************
*** 77,81 ****
COMMENT #.*
RETOKEN |\/
! TEXT [a-zA-Z_0-9/]*
BOOL yes|no
--- 77,81 ----
COMMENT #.*
RETOKEN |\/
! TEXT [a-zA-Z_0-9/-]*
BOOL yes|no
***************
*** 101,107 ****
<*>{COMMENT} ; /* Skip comments */
<INITIAL>input_fifo= {
! yypch=lw_conf.fifo_file;
#ifdef DEBUG
! strcpy(mymsg,"input_fifo");
#endif
PUSH(TEXT);
--- 101,122 ----
<*>{COMMENT} ; /* Skip comments */
<INITIAL>input_fifo= {
! printf("lwatch.conf: OPTION input_fifo IN LINE %i IS DEPRECATED.\n.USE input_file INSTEAD IT.\n",lineno);
! yypch=lw_conf.in_file;
#ifdef DEBUG
! strcpy(mymsg,"input_file");
! #endif
! PUSH(TEXT);
! }
! <INITIAL>input_file= {
! yypch=lw_conf.in_file;
! #ifdef DEBUG
! strcpy(mymsg,"input_file");
! #endif
! PUSH(TEXT);
! }
! <INITIAL>output_file= {
! yypch=lw_conf.out_file;
! #ifdef DEBUG
! strcpy(mymsg,"output_file");
#endif
PUSH(TEXT);
***************
*** 285,289 ****
}
-
-
%%
--- 300,302 ----
|
|
From: <ar...@us...> - 2003-04-04 12:10:24
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv23960 Modified Files: ChangeLog Log Message: - author of changes Index: ChangeLog =================================================================== RCS file: /cvsroot/lwatch/files/ChangeLog,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ChangeLog 4 Apr 2003 12:01:42 -0000 1.13 --- ChangeLog 4 Apr 2003 12:10:21 -0000 1.14 *************** *** 1,6 **** ! 0.3: - new tests in ./configure (getopt_long) ! - If other program close 2nd end of fifo lwatch tries to reopen it ! - when reading from stdin close on EOF ! - FreeBSD port 0.2: - bugfix: too much manual files installed (arturcz) --- 1,5 ---- ! 0.3: - new tests in ./configure for getopt_long (arturcz) ! - handle EOF - reopen fifo, close when input from stdin (arturcz) ! - FreeBSD port (arturcz) 0.2: - bugfix: too much manual files installed (arturcz) *************** *** 13,17 **** - build-in default for input file could be replaced during build time (arturcz) ! - legal stuff required by PCRE 0.1: - first public release. Basic functionality implemented (parse and --- 12,16 ---- - build-in default for input file could be replaced during build time (arturcz) ! - legal stuff required by PCRE (arturcz) 0.1: - first public release. Basic functionality implemented (parse and |
|
From: <ar...@us...> - 2003-04-04 12:01:48
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv21146 Modified Files: ChangeLog Log Message: - when reading from stdin close on EOF Index: ChangeLog =================================================================== RCS file: /cvsroot/lwatch/files/ChangeLog,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ChangeLog 27 Mar 2003 16:08:14 -0000 1.12 --- ChangeLog 4 Apr 2003 12:01:42 -0000 1.13 *************** *** 1,18 **** ! 0.3: new tests in ./configure (getopt_long) ! If other program close 2nd end of fifo lwatch tries to reopen it ! FreeBSD port ! ! ! 0.2: bugfix: too much manual files installed ! ChangeLog filled :) ! reading lwatch.conf from $sysconfdir ! compliant with GPL2.0 ! support for show_unparsed ! bugfix: yes and no was negated ! some typos corrected ! build-in default for input file could be replaced during build time ! legal stuff required by PCRE ! 0.1: First public release. Basic functionality implemented (parse and ! colourize logs) --- 1,18 ---- ! 0.3: - new tests in ./configure (getopt_long) ! - If other program close 2nd end of fifo lwatch tries to reopen it ! - when reading from stdin close on EOF ! - FreeBSD port + 0.2: - bugfix: too much manual files installed (arturcz) + - ChangeLog filled :) (arturcz) + - reading lwatch.conf from $sysconfdir (arturcz) + - compliant with GPL2.0 (arturcz) + - support for show_unparsed (arturcz) + - bugfix: yes and no was negated (arturcz) + - some typos corrected (arturcz) + - build-in default for input file could be replaced during build + time (arturcz) + - legal stuff required by PCRE ! 0.1: - first public release. Basic functionality implemented (parse and ! colourize logs) (arturcz) |
|
From: <ar...@us...> - 2003-04-04 12:01:48
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv21146/src
Modified Files:
lwatch.c
Log Message:
- when reading from stdin close on EOF
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** lwatch.c 3 Apr 2003 15:09:29 -0000 1.14
--- lwatch.c 4 Apr 2003 12:01:43 -0000 1.15
***************
*** 53,57 ****
--- 53,59 ----
char *pbuf,*pstart,*pstop;
struct pollfd input;
+ int checkeof;
+ checkeof=0;
parse_options(argc,argv);
parse_config();
***************
*** 80,84 ****
res=poll(&input,1,-1);
if(errno!=EINTR) io_check(res,"poll");
! if(input.revents==POLLHUP) {
/* other end closed fifo */
if(fd) {
--- 82,88 ----
res=poll(&input,1,-1);
if(errno!=EINTR) io_check(res,"poll");
! if(input.revents==POLLHUP) checkeof=1;
! if(checkeof) {
! checkeof=0;
/* other end closed fifo */
if(fd) {
***************
*** 101,105 ****
if(res<1) continue;
io_check(res=read(fd,(void*)rbuf,BUFSIZE),"read input");
! if(!res) continue;
rbuf[res]='\0';
pstart=pbuf=addstr(pbuf,rbuf);
--- 105,112 ----
if(res<1) continue;
io_check(res=read(fd,(void*)rbuf,BUFSIZE),"read input");
! if(!res) {
! checkeof=1;
! continue;
! }
rbuf[res]='\0';
pstart=pbuf=addstr(pbuf,rbuf);
|
|
From: <ar...@us...> - 2003-04-03 15:09:37
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv31782/src
Modified Files:
lwatch.c
Log Message:
- we are not supporting regular files for now
- dealing with end of input file - first try
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** lwatch.c 27 Mar 2003 16:26:37 -0000 1.13
--- lwatch.c 3 Apr 2003 15:09:29 -0000 1.14
***************
*** 64,67 ****
--- 64,70 ----
#endif
} else {
+ struct stat sbuf;
+ io_check(stat(lw_conf.fifo_file,&sbuf),lw_conf.fifo_file);
+ if(!S_ISFIFO(sbuf.st_mode)) die("ERROR: Regular file are not supported for now. See manual for details\n");
io_check(fd=open(lw_conf.fifo_file,O_RDONLY),lw_conf.fifo_file);
#ifdef DEBUG
***************
*** 79,87 ****
if(input.revents==POLLHUP) {
/* other end closed fifo */
#ifdef DEBUG
! printf("syslog closed second end of fifo %s\nTrying to reopen\n",lw_conf.fifo_file);
#endif
! /* trying to reopen or die */
! io_check(fd=open(lw_conf.fifo_file,O_RDONLY),lw_conf.fifo_file);
}
if(res<1) continue;
--- 82,101 ----
if(input.revents==POLLHUP) {
/* other end closed fifo */
+ if(fd) {
+ /* from fifo */
#ifdef DEBUG
! printf("syslog closed second end of fifo %s\nTrying to reopen\n",lw_conf.fifo_file);
#endif
! /* trying to reopen or die */
! io_check(fd=open(lw_conf.fifo_file,O_RDONLY),lw_conf.fifo_file);
! input.fd=fd;
! } else {
! /* from stdin */
! #ifdef DEBUG
! printf("end of file on stdin, exitting...\n");
! #endif
! loop=0;
! }
! continue;
}
if(res<1) continue;
|
|
From: <ar...@us...> - 2003-04-03 14:11:41
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv18087a
Modified Files:
lwatch.conf
Log Message:
- new color patterns
Index: lwatch.conf
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.conf,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** lwatch.conf 21 Mar 2003 15:38:10 -0000 1.14
--- lwatch.conf 3 Apr 2003 14:11:36 -0000 1.15
***************
*** 82,85 ****
--- 82,90 ----
}
+ # Most cron messages are not important, except some like this:
+ /mailman/ color=red #pick a color you like
+
+ /([0-9A-Z]{2}:){5}[0-9A-Z]{2}/ highlight=yellow # highlight MAC in yellow
+
/^pam/ { # PAM
match_service # service
|
|
From: <ca...@us...> - 2003-04-01 18:53:22
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv1207 Modified Files: README Log Message: stylistics, spelling in README. Index: README =================================================================== RCS file: /cvsroot/lwatch/files/README,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** README 27 Mar 2003 11:54:46 -0000 1.12 --- README 1 Apr 2003 18:53:17 -0000 1.13 *************** *** 7,14 **** Regular expression support is provided by the PCRE library package, ! which is open source software, written by Philip Hazel, and copyright by the University of Cambridge, England. ! PCRE library available at: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ --- 7,14 ---- Regular expression support is provided by the PCRE library package, ! which is an open source software, written by Philip Hazel, copyright by the University of Cambridge, England. ! PCRE library is available at: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ *************** *** 21,29 **** If you want to use CVS snapshot you need autoconf 2.57. ! Automake 1.7 is not necessary. You may safely ignore messages about ! its lack until Makefile.am, acinclude.m4 and configure.ac is not modified. ! System manual has been written in SGML DocBook. You need any docbook->man ! converter to generate proper manual page. For now configure supports only docbook-to-man available at: http://www.oasis-open.org/docbook/tools/dtm/docbook-to-man.tar.gz --- 21,29 ---- If you want to use CVS snapshot you need autoconf 2.57. ! Automake 1.7 is not necessary. You may safely ignore messages about the ! lack of it as long as Makefile.am, acinclude.m4 and configure.ac are not ! modified. ! System manual has been written in SGML DocBook. You need some kind (any) docbook->man converter to generate proper manual page. For now, configure supports only docbook-to-man available at: http://www.oasis-open.org/docbook/tools/dtm/docbook-to-man.tar.gz *************** *** 31,47 **** Log Watcher uses getopt_long function. Some unices have it included in libc (specially glibc based ones), some have it in other libraries ! and some have not. If you use one of two last flavour of unices, please, ! inform me how you compiled/linked lwatch. ! In most cases (assume, that you have required libriaries) ./configure make make install ! should work. If not can set following environment variables: - CPPFLAGS specifies additional directories where headers files are searched - LDFLAGS specifies additional directories where libraries are searched - LIBS specifies additional libraries which lwatch should be linked with(FIXME) ! If you have a includes/libraries in non-standard directories you can run (for example): CPPFLAGS="-I/opt/include" LDFLAGS="-L/opt/lib" ./configure --- 31,47 ---- Log Watcher uses getopt_long function. Some unices have it included in libc (specially glibc based ones), some have it in other libraries ! and some do not have it. If you use one of the two last flavors of ! unices, please, inform me how you compiled/linked lwatch. ! In most cases (assuming, that you have the required libriaries) ./configure make make install ! should work. If not you can set following environment variables: - CPPFLAGS specifies additional directories where headers files are searched - LDFLAGS specifies additional directories where libraries are searched - LIBS specifies additional libraries which lwatch should be linked with(FIXME) ! If you have includes/libraries in non-standard directories you can run (for example): CPPFLAGS="-I/opt/include" LDFLAGS="-L/opt/lib" ./configure *************** *** 60,64 **** configuration file during package installation? ! If you add this piece of software into any distrubution make me a favour and, please, send me an email notice about it. You can find my email address in AUTHORS file. --- 60,64 ---- configuration file during package installation? ! If you add this piece of software into any distribution do me a favour and, please, send me an email notice about it. You can find my email address in AUTHORS file. *************** *** 87,94 **** LIBS="-liberty" CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" make make install ! and, please, notify me is it works. * MS Windows ! There is no native Windows port of lwatch. If you want to use it under MS Win install Cygwin from http://www.cygwin.com/ and read a note about Cygwin in this README. --- 87,94 ---- LIBS="-liberty" CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" make make install ! and, please, notify me if it works. * MS Windows ! There is no native Windows port for lwatch. If you want to use it under MS Win install Cygwin from http://www.cygwin.com/ and read a note about Cygwin in this README. |
|
From: <ar...@us...> - 2003-03-30 19:26:35
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv14224 Modified Files: TODO Log Message: - new feature Index: TODO =================================================================== RCS file: /cvsroot/lwatch/files/TODO,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** TODO 27 Mar 2003 16:08:15 -0000 1.13 --- TODO 30 Mar 2003 19:26:30 -0000 1.14 *************** *** 9,12 **** --- 9,13 ---- Later: + - full color support (dark and light colors) - configure: --with-pcre support - documentation for lwatch.conf |
|
From: <ar...@us...> - 2003-03-27 16:26:51
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv3894
Modified Files:
lwatch.c
Log Message:
- junk removed
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** lwatch.c 27 Mar 2003 16:08:19 -0000 1.12
--- lwatch.c 27 Mar 2003 16:26:37 -0000 1.13
***************
*** 76,82 ****
input.revents=0;
res=poll(&input,1,-1);
- #ifdef DEBUG
- /* show_poll_res(res,&input,1); */
- #endif
if(errno!=EINTR) io_check(res,"poll");
if(input.revents==POLLHUP) {
--- 76,79 ----
|
|
From: <ar...@us...> - 2003-03-27 16:08:54
|
Update of /cvsroot/lwatch/files
In directory sc8-pr-cvs1:/tmp/cvs-serv27386
Modified Files:
ChangeLog TODO configure
Log Message:
- reopen fifo when closed by other end
Index: ChangeLog
===================================================================
RCS file: /cvsroot/lwatch/files/ChangeLog,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ChangeLog 25 Mar 2003 13:15:47 -0000 1.11
--- ChangeLog 27 Mar 2003 16:08:14 -0000 1.12
***************
*** 1,3 ****
--- 1,4 ----
0.3: new tests in ./configure (getopt_long)
+ If other program close 2nd end of fifo lwatch tries to reopen it
FreeBSD port
Index: TODO
===================================================================
RCS file: /cvsroot/lwatch/files/TODO,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TODO 25 Mar 2003 15:01:11 -0000 1.12
--- TODO 27 Mar 2003 16:08:15 -0000 1.13
***************
*** 4,8 ****
Now (for 0.3):
- create fifo (if needed by user)
- - reopen fifos closed on syslog restart
- proper signal handling
- option for output file
--- 4,7 ----
Index: configure
===================================================================
RCS file: /cvsroot/lwatch/files/configure,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** configure 25 Mar 2003 13:15:47 -0000 1.33
--- configure 27 Mar 2003 16:08:16 -0000 1.34
***************
*** 1,4 ****
#! /bin/sh
! # From configure.ac Revision: 1.27 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for lwatch 0.2.
--- 1,4 ----
#! /bin/sh
! # From configure.ac Revision: 1.29 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for lwatch 0.2.
***************
*** 4793,4797 ****
- # SSSSSSSS
echo "$as_me:$LINENO: checking for getopt_long" >&5
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
--- 4793,4796 ----
|
|
From: <ar...@us...> - 2003-03-27 16:08:29
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27386/src
Modified Files:
defaults.h lwatch.c
Log Message:
- reopen fifo when closed by other end
Index: defaults.h
===================================================================
RCS file: /cvsroot/lwatch/files/src/defaults.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** defaults.h 24 Mar 2003 13:43:23 -0000 1.5
--- defaults.h 27 Mar 2003 16:08:18 -0000 1.6
***************
*** 30,33 ****
--- 30,35 ----
*/
+ #include "config.h"
+
#define YES 1
#define NO 0
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** lwatch.c 8 Aug 2002 14:35:24 -0000 1.11
--- lwatch.c 27 Mar 2003 16:08:19 -0000 1.12
***************
*** 81,86 ****
if(errno!=EINTR) io_check(res,"poll");
if(input.revents==POLLHUP) {
! loop=0; /* end of data */
! continue;
}
if(res<1) continue;
--- 81,90 ----
if(errno!=EINTR) io_check(res,"poll");
if(input.revents==POLLHUP) {
! /* other end closed fifo */
! #ifdef DEBUG
! printf("syslog closed second end of fifo %s\nTrying to reopen\n",lw_conf.fifo_file);
! #endif
! /* trying to reopen or die */
! io_check(fd=open(lw_conf.fifo_file,O_RDONLY),lw_conf.fifo_file);
}
if(res<1) continue;
|
|
From: <ar...@us...> - 2003-03-27 11:55:24
|
Update of /cvsroot/lwatch/files In directory sc8-pr-cvs1:/tmp/cvs-serv20375 Modified Files: configure.ac Log Message: - junk remove Index: configure.ac =================================================================== RCS file: /cvsroot/lwatch/files/configure.ac,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** configure.ac 25 Mar 2003 13:15:47 -0000 1.28 --- configure.ac 27 Mar 2003 11:55:20 -0000 1.29 *************** *** 78,82 **** AC_CHECK_FUNCS([memset strcasecmp strchr]) - # SSSSSSSS AC_CHECK_FUNC([getopt_long]) if test "$ac_cv_func_getopt_long" = "no"; then --- 78,81 ---- |