Date: Thu, 8 Jul 1999 19:43:55 -0700 (PDT) From: Tani Hosokawa <unknown@riverstyx.net> To: Dan Nelson <dnelson@emsphone.com> Cc: Dan Langille <dan.langille@dvl-software.com>, questions@FreeBSD.ORG Subject: Re: lynx from /etc/crontab fails Message-ID: <Pine.LNX.4.10.9907081943030.26462-100000@avarice.riverstyx.net> In-Reply-To: <19990708213001.A25909@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Jul 1999, Dan Nelson wrote: > > I haven't tried ktracing it (first I've heard of ktracing). Here is > > the script: > > > > $ cat dns_update.sh > > #!/bin/sh > > > > user_id="something" > > password="secret" > > > > ip_addr=`netstat -rn | egrep ^0.0.0.0 | sed -e "s,.* ,,g" | \ > > xargs /sbin/ifconfig | grep "inet.addr" | sed -e "s,.*addr:,," \ > > -e "s, .*,,"` > > Wow. What is this thing trying to do here? It can't possibly return a > valid value, since "netstat -rn" prints "default" for the default route > (not 0.0.0.0), and ifconfig never prints the string "inet addr". > > If you're trying to get your current dialup IP number, run this script > from /etc/ppp/ppp.linkup, where you can pass the IP number directly > from ppp and skip all this "guess our IP based on our default route" > trickery. This is obviously transplanted from a Linux box... RTFM :) --- tani hosokawa river styx internet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.9907081943030.26462-100000>