ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexandr A. Alexandrov" <aaa@inrecolan.com>
To: Denis Kirienko <Denis.Kirienko@gmail.com>
Cc: community@lists.altlinux.org
Subject: Re: [Comm] Re: ping daemon?
Date: Wed, 2 Nov 2005 15:00:58 +0300
Message-ID: <1067408699.20051102150058@inrecolan.com> (raw)
In-Reply-To: <dka48l$va2$1@sea.gmane.org>

Доброго времени суток!

Wednesday, November 2, 2005, 1:26:29 PM, вы писали:

>> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
>> попинговывать
>> время от времени некоторый адрес, и, если он не пингуется, выпонять
>> некоторую команду?

DK> Утилитка называется cron

  Таки работает именно shell :-)

DK> Вот, например, что у меня в crontab написано для пинга всех точек
DK> доступа и сообщения, что какая-то из них недоступна:

DK> 0  9   *   *   * for f in 2 3 4 5 6 7 8 9 ; do \
DK> ping -c 10 192.168.4.$f &>/dev/null || \
DK> echo "Wi-Fi точка $f недоступна" ; done

DK> Уберите цикл и замените echo на то, что вам нужно.

-- 
С уважением,
 Александр                            mailto:aaa@inrecolan.com

Девиз дня: Что вы бегаете как собака, высунув хвост? (армейский)



  reply	other threads:[~2005-11-02 12:00 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 ` [Comm] " Denis Kirienko
2005-11-02 12:00   ` Alexandr A. Alexandrov [this message]
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=1067408699.20051102150058@inrecolan.com \
    --to=aaa@inrecolan.com \
    --cc=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