From: Denis Kirienko <Denis.Kirienko@gmail.com>
To: community@lists.altlinux.org
Subject: [Comm] Re: ping daemon?
Date: Wed, 02 Nov 2005 13:26:29 +0300
Message-ID: <dka48l$va2$1@sea.gmane.org> (raw)
In-Reply-To: <436890C5.4000708@uaservice.com.ua>
Valentin Lavrinenko wrote:
> Здравствуйте все!
>
> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
> попинговывать
> время от времени некоторый адрес, и, если он не пингуется, выпонять
> некоторую команду?
Утилитка называется cron
Вот, например, что у меня в crontab написано для пинга всех точек
доступа и сообщения, что какая-то из них недоступна:
0 9 * * * for f in 2 3 4 5 6 7 8 9 ; do \
ping -c 10 192.168.4.$f &>/dev/null || \
echo "Wi-Fi точка $f недоступна" ; done
Уберите цикл и замените echo на то, что вам нужно.
--
Денис
next prev parent reply other threads:[~2005-11-02 10:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-02 10:11 [Comm] " Valentin Lavrinenko
2005-11-02 10:19 ` Nick S. Grechukh
2005-11-02 11:04 ` Valentin Lavrinenko
2005-11-02 10:20 ` Alexandr A. Alexandrov
2005-11-02 10:26 ` Denis Kirienko [this message]
2005-11-02 12:00 ` [Comm] " Alexandr A. Alexandrov
2005-11-02 14:24 ` [Comm] " Eugene A. Suchkov
2005-11-03 6:28 ` Александр Никольников
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='dka48l$va2$1@sea.gmane.org' \
--to=denis.kirienko@gmail.com \
--cc=community@lists.altlinux.org \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git