xlog
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 07 November 2020
Index
Return to Main Contents
 
NAME
xlog - write stdin to log with a timestamp 
 
SYNOPSIS
edrc/bin/xlog
[
-h
]
xlog
[
-t tag
]
-f logfile
 
AVAILABILITY
WA2L/edrc
 
DESCRIPTION
write date from
stdin
to a
logfile.
Each line is preceded with a 
date, time, sequence and tag entry.
A common use might be in crontab
instead of piping outputs to 
/dev/null.
Example:
  a_command 2>&1 | xlog -t a_cmd -f /var/adm/log/a_command.log
 
OPTIONS
- -h
 - 
usage message.
 - -t tag
 - 
tag to be added to the log file.
 - -f logfile
 - 
log file name.
 
 
ENVIRONMENT
-
 
EXIT STATUS
- 0
 - 
no error.
 - 1
 - 
cannot write to
logfile.
 - 2
 - 
operating system not supported.
 - 4
 - 
usage printed.
 
 
FILES
-
 
EXAMPLES
-
 
SEE ALSO
edrcintro(1),
log(3),
tscat(3),
xtee(1)
 
NOTES
-
 
BUGS
-
 
AUTHOR
xlog was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
 
COPYRIGHT
Copyright © 2020
by Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:55:08 GMT, August 28, 2024