Page 1 of 1

5 Cent tip for today [ Syslogger ]

Posted: Sun Mar 07, 2004 9:27 pm
by newdep
#!/usr/bin/newlisp
;
; Simple and quick syslogger (udp listener)
; > newlisp syslog
;
; filtering syslog output (because there is officialy a standard
; for syslog information) you can sharpen the output, even to file
; per incoming mached id.
;
; Use (pretty-print xxx) to extend console width output.
(pretty-print 256)

; And this is it..."4444" could be a syslog port
(until (net-error) (println (net-receive-udp 4444 1024 )))
(exit)



Norman.