All of lore.kernel.org
 help / color / mirror / Atom feed
From: whitnl73@juno.com
To: nc8q@gelm.net
Cc: linux-newbie@vger.kernel.org
Subject: Re: PC speaker 'alert'
Date: Wed, 19 Feb 2003 21:33:41 -0500 (EST)	[thread overview]
Message-ID: <20030219.215413.8.0.whitnl73@juno.com> (raw)
In-Reply-To: <3E540B98.190D9D8D@gelm.net>

On Wed, 19 Feb 2003, Chuck Gelm wrote:

> Howdy, Y'all:
>
>  I'm monitoring my /var/log/messages file and I'd
> like to have the PC's speaker beep when there is a new
> entry.  I am monitoring 'DENY'ed packets.  I am now
> using 'cut' and 'grep' and 'tail' to show the last
> 11 denied packets.  How can I cause the PC speaker to
> beep when the last 11 lines are different the the
> previous 11 lines.
>
> Here is what I am using now:
>
> #!/bin/sh
> #
> grep DENY /var/log/messages > t
> cut -f2 -d\= t > u
> cut -f2 -d" " u > v
> cut -f1 -d: v > w

tail -n 11 w | diff -- - deny.txt >/dev/null 2>&1 || echo -ne "\a"

> tail -n 11 w > deny.txt
> clear
> echo ""
> cat deny.txt
> echo ""
> chmod 777 deny.txt   ; v
> chgrp users deny.txt ; so that my other workstations can see
>
> Regards, Chuck
> -
Lawson

--
---oops---



________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      reply	other threads:[~2003-02-20  2:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-08 18:38 tar for "full" floppy backup? Jerry James Haumberger
2002-12-09  8:10 ` ichi
2002-12-08 21:07   ` dashielljt
2002-12-09 18:11     ` ichi
2002-12-09 10:16       ` dashielljt
2002-12-09 12:38       ` Mr. James W. Laferriere
2003-01-04 17:50   ` pcmcia-cs quit working Chuck Gelm
2003-01-05 16:46   ` string manipulating? Chuck Gelm
2003-01-05 17:01     ` Jim Reimer
2003-01-05 17:42       ` Chuck Gelm
2003-01-05 17:56         ` Jim Reimer
2003-01-05 17:20     ` Brian Jackson
2003-01-05 17:23       ` Brian Jackson
2003-01-06  0:50         ` Chuck Gelm
2003-01-06  1:22           ` Brian Jackson
     [not found]           ` <3E19A91A.7EEB7666@wa5rrh.org>
2003-01-06 22:09             ` Chuck Gelm
2003-01-06 23:06               ` Brian Jackson
2003-02-19 22:56   ` PC speaker 'alert' Chuck Gelm
2003-02-20  2:33     ` whitnl73 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030219.215413.8.0.whitnl73@juno.com \
    --to=whitnl73@juno.com \
    --cc=linux-newbie@vger.kernel.org \
    --cc=nc8q@gelm.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.