SPUG: /var/log/messages - solved
Mikel Tidwell
dragon at dreamhaven.net
Fri May 31 12:25:38 CDT 2002
Thanks for everyone who helped out.
I had to use Unix::Syslog, since we're using redhat 7.2.
I had to add a line to to /etc/syslog.conf.
I had to learn more about syslog then I ever wanted... but it works now ;>
mysqlcheck.pl: (so far ;)
#!/usr/bin/perl -w
use Unix::Syslog qw(:subs);
openlog('mysqlcheck.pl',0,1); # #define LOG_USER (1<<3)
syslog(5, 'Test--ignore me'); # #define LOG_NOTICE 5
closelog();
/etc/syslog.conf:
*.=notice;*.info;mail.none;authpriv.none;cron.none /var/log/messages
_ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _
-- Mikel Tidwell President: RPGamer -- http://www.rpgamer.com/
MSNM: FireMyst Personal Home Page -- http://dragon.rpgamer.com/
- _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list