Subj : Re: ping / traceroute To : Jay Harris From : Wilfred van Velzen Date : Mon Nov 04 2024 21:03:12 Hi Jay, On 2024-11-04 14:49:32, you wrote to me: Wv>> DS> So if I read your comment you would like to accept a ping from Wv>> ping DS> but not reply with ping as from Wv>> Yes, that last restriction is (very) important, otherwise PONG messages Wv>> could "bounce" back and forth indefinitly... JH> my $myname = 'Ping Robot'; # From: name in PONG reply. Cannot be 'PING' JH> [...] JH> # Do not set $myname to 'PING' JH> if ( uc($myname) eq "PING" ) { die "ERROR: \$myname cannot be PING"; } JH> # Check if message is netmail & addressed to PING (case insensitive) JH> if ( length($area) == 0 && uc($toname) eq "PING" ) { JH> [...] JH> I think this would do that. I think so too. JH> It would accept a netmail addressed to "Ping" and also from "Ping". JH> If someone tried setting $myname to "Ping" the script would exit with JH> an error. If someone wants to change the script to do so, they could also remove the check. So the check is kind of a waste of cpu cycles. The comment should suffice. JH> The reply would be from "Ping Robot" to "Ping" which (if the remote JH> system has a ping robot) would trigger a response from that system, JH> e.g: From: Ping Robot & To: Ping Robot. Indeed. Bye, Wilfred. --- FMail-lnx64 2.3.2.4-B20240523 * Origin: FMail development HQ (2:280/464) .