#!/bin/csh
# ~/bin/.csh/ping_dsl	by jhs@ See Also ~/bin/.sh/ping_bsn
#
#	csh:
#		 while(1)
#		 	ping -c 1 www-proxy.M1.srv.t-online.de
#		 	sleep 120
#		 	end
# ----------
# ping -A #	Ring bell for each failed ping, to induce human activity:
#		- Kill this dsl_ping.
#		- Manually tell pppctl "down" then "dial".
#	When cable is disconnected (for protection stronger than
#	firewall, when it is known internet definately not needed
#	for a while), if this dsl_ping is accidentally still running,
#	interface then fills with ping packets, & on
#	physical reconnect it (ppp?) doesnt initiate software reconnect
#	to flush, as pppctl shows it thinks it is still connected.
# ping -i	# Interval 120 Seconds
# ping -q 	# Quiet
# ----------
# TARGET=www-proxy.M1.srv.t-online.de
#	I used to use numeric, in case the dsl link is down, & name server
#	is not loaded, but t-online changes its IP number occasionaly
#	The above causes a permission denied, plus it's also likely
#	they'll change a complex name as above.
# TARGET=www.t-online.de	# sendto: Permission denied 23.03.2006
#	 nslookup www.t-online.de
#		62.153.159.93	allows ping	no-rarp
#		217.6.164.162	refuses ping	no-rarp
#		62.153.159.92	allows ping	no-rarp
# TARGET=www.berklix.com:
#	I prefer to avoid this as it puts some cost on my host sites.
# TARGET=remote end of tun0:	217.0.116.76
#	ping: sendto: Permission denied
# TARGET= ISP/connectivity provider DNS
#	Their remote nameservers at 22 Nov 3007
#		nslookup
#			set type=ns
#			pns.dtag.de.
#			dns00.btx.dtag.de.
#			dns02.btx.dtag.de.
#			dns50.t-ipnet.de.
#		ping dns00.btx.dtag.de
#			9 packets transmitted, 0 packets received,
#		good enough to keep link open though I guess.
# ----------
# ping -A -i 120 -q dns00.btx.dtag.de
ping      -i 120 -q dns00.btx.dtag.de
