[Tilesathome] tilesGen.pl and syslog

Sabine Sagner-Weigl sabine at weiglwelt.de
Tue Mar 4 19:46:47 GMT 2008


Hello!

Does anybody log the output of tilesGen.pl? How?

As the output is not ment for batchprocessing, it is not so easy.
I have three Problems:
- no timestamps
- too much output
- many lines are separated only with \r

Unfortunately, I do not know how to solve them.

.tilesGen.pl loop  2>&1 | logger -p local6.info -t tilesGen

adds timestamps, but the "lines" "garbled" due to \r instead of \n


./tilesGen.pl loop  2>&1 |\
tr '\r' '\n' |\
grep -Ev ' [0-9]{1,2}% (default|maplint|ziprun|captionless)' |\
logger -p local6.info -t tilesGen

gives sensible lines but the timestamps are useless as tr has only buffered
output.


./tilesGen.pl loop  2>&1 |\
awk -f ../prettylog.awk  |\
logger -p local6.info -t tilesGen

same problem as with tr


./tilesGen.pl loop  2>&1 |\
mawk -Wi -f ../prettylog.awk  |\
logger -p local6.info -t tilesGen

mawk -Wi always assumes \n as RS (record separator),
so I have garbled lines again.

Regards,

Sabine


-- 
Sabine Sagner-Weigl
 |->   Sabine.Sagner-Weigl at WeiglWelt.de




More information about the Tilesathome mailing list