Re: watch and beep

2012-11-30 Thread Paweł Ch .
Thanks On 30 November 2012 12:26, Kumar Appaiah wrote: > On Fri, Nov 30, 2012 at 09:31:33AM +, 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. >

Re: watch and beep

2012-11-30 Thread Kumar Appaiah
On Fri, Nov 30, 2012 at 09:31:33AM +, 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

watch and beep

2012-11-30 Thread Paweł Ch .
Hi list, 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. Thanks