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

Re: watch and beep



Thanks

On 30 November 2012 12:26, Kumar Appaiah <a.kumar@alumni.iitm.ac.in> wrote:
On Fri, Nov 30, 2012 at 09:31:33AM +0000, Paweł Ch. wrote:
>    I would like to hear beep when command output "watch dig @ns.domain.tdl
>    domain.tdl soa" appear with string "2012113005".
>    Which command performs this task.

How about:

while true; do
if dig @ns.domain.tdl domain.tdl soa| grep -q 2012113005; then beep; fi
sleep 2;
done

beep is available in the beep package.

Kumar
--
/*
 * Oops. The kernel tried to access some bad page. We'll have to
 * terminate things with extreme prejudice.
*/
die_if_kernel("Oops", regs, error_code);
(From linux/arch/i386/mm/fault.c)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20121130122647.GA12780@bluemoon.alumni.iitm.ac.in" target="_blank">http://lists.debian.org/20121130122647.GA12780@bluemoon.alumni.iitm.ac.in



Reply to: