BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Solaris 9 messages test




Hi Paul,

        You could modify the cron entry itself to execute a second command -- your echo.  Just add a ";" and your command.  Off you go -- I think. ;-)

                        Dan



"PAUL WILLIAMSON" <pwilliamson@mandtbank.com>
Sent by: owner-bb@bb4.com

06/02/2005 10:08 AM

Please respond to
bb@bb4.com

To
bb@bb4.com
cc
Subject
{bb} Solaris 9 messages test





I see that in solaris 9, Sun has bestowed their wonderful knowledge
on us lowly sys admins that the log rotation is now a binary.

My typical modification is a statement in /usr/lib/newsyslog:

echo `date "+%b %e %T"` `uname -n` newsyslog: message log rotated >
$LOG

And that gives me all I need.  We log to the local messages file as
well
as to a remote syslog server.  With this new binary approach, do I
need to modify the default cron entry to call a shell script that
calls logadm and then echos the above line out to the log file,
or am I missing something?

Thanks,
Paul

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index