public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] batctl ping exit status
@ 2011-11-19 10:43 Filippo Sallemi
  2011-11-19 11:04 ` Antonio Quartulli
  2011-11-20 15:35 ` [B.A.T.M.A.N.] [PATCH] batctl: Return failure code when ping was not successful Sven Eckelmann
  0 siblings, 2 replies; 5+ messages in thread
From: Filippo Sallemi @ 2011-11-19 10:43 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi all,
I'm working on a simple script that check if node is connected. The
scope of this script is make every node able to autorescue in case of
change channel on some gateway node.
To do this check if i'm not a gateway try to ping my gateway ipaddress
then if it not respond try to batctl ping my gateway mac and than if
not respond for a number of tries the node try to find another
channell with the same bssid.
The problem is that batct ping every time exit with status 0 istead of
behaviour of ping command that exit with 1 if ping fail. At this time
I have to use some regex to check if batctl ping status command. It is
possible to fix batctl ping to work such as ping command?

Rgds

-- 
Filippo Sallemi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-22 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-19 10:43 [B.A.T.M.A.N.] batctl ping exit status Filippo Sallemi
2011-11-19 11:04 ` Antonio Quartulli
2011-11-19 13:17   ` Filippo Sallemi
2011-11-20 15:35 ` [B.A.T.M.A.N.] [PATCH] batctl: Return failure code when ping was not successful Sven Eckelmann
2011-11-22 10:59   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox