Thread: bash logging pipe in
hi,
i'm not sure if correct forum here goes:-
want log output programm log file, , currectly using pipe redirection
program > logfile.log 2>&1 &
works ok, program produces 1000's messages along lines of "connection closed", log can large (3-6mb). i've seen linux has tool "logger" combines messages same (last message repeated 5 times). eveyrthing i've tried logger log pipein (from program) log file (of choice) doesn't seem work.
there program want?
regards
ian dobson
you might want options logger command. see man logger.code:program 2>&1 | logger
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk bash logging pipe in
Ubuntu
Comments
Post a Comment