On Jan 9, 2008 12:01 PM, Laurentiu STEFAN <[EMAIL PROTECTED]> wrote:
> Am facut un test sa vad daca merge....  shi pe langa ce trebuie sa imi dea
> mai imi afiseaza shi ceva de genul "ICMP Host Unreachable from Y for ICMP
> Echo sent to X".
> Pot sa scap de el?

fping -r 3 X 2>/dev/null | awk '{print $3;}'

>
> #fping -r 3 X | gawk '{print $3;}'
> ICMP Host Unreachable from Y for ICMP Echo sent to X
> ICMP Host Unreachable from Y for ICMP Echo sent to X
> ICMP Host Unreachable from Y for ICMP Echo sent to X
> unreachable
>
>
> 2008/1/9, Alexandru N. Barloiu <[EMAIL PROTECTED]>:
>
> >
> >
> > On Wed, 2008-01-09 at 18:03 +0200, Laurentiu STEFAN wrote:
> > > eu vreau doar sa testez daca isp-ul meu e OKa. Daca nu sa afiseze pe
> > ecran
> > > ca e cazut ISP-ul.
> >
> > while(true)
> > do
> >         if [ "`fping ${host} | gawk '{print $3;}'`" != "alive" ]; then
> >                 echo "isp nu merge"
> >         fi
> >         sleep 1m
> > done
> >
> >
> >
> > _______________________________________________
> > RLUG mailing list
> > RLUG@lists.lug.ro
> > http://lists.lug.ro/mailman/listinfo/rlug
> >
> _______________________________________________
> RLUG mailing list
> RLUG@lists.lug.ro
> http://lists.lug.ro/mailman/listinfo/rlug
>

_______________________________________________
RLUG mailing list
RLUG@lists.lug.ro
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui