[NTLUG:Discuss] Writing to /var/log/messages ?
David I S Mandala
davidm at them.com
Tue Jan 11 16:59:01 CST 2005
I am some what confused by what you are asking but the command logger
will make entries into the syslog which is what /var/log/messages is
part of. man logger. It's quite handy actually.
On Tue, 2005-01-11 at 16:15 -0600, David Simmons, PE wrote:
> I'm creating a simple script to erase a recent rash of Microsoft's
> errors to 'clean up after itself' with the following and want to:
>
> find/erase commands | wc -l > echo " to log file "
>
> to /var/log/messages.....is there some 'command' type way or just do a:
>
> find/erase commands | wc -l >> /var/log/messages
>
> ?? Thanks...here's the 'real' command/script if needed:
>
> find / -name "~*.tmp" -print -exec rm "{}" \;
>
>
> dave
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
--
David Mandala <davidm at them dot com>
www.them.com/~davidm Public Key id: 45B2D952
Murphy TX, 75094 214.774.2569 HO 972.693.4007 C
More information about the Discuss
mailing list