From owner-freebsd-questions Tue Sep 22 11:39:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29325 for freebsd-questions-outgoing; Tue, 22 Sep 1998 11:39:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29310 for ; Tue, 22 Sep 1998 11:39:30 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA19619; Tue, 22 Sep 1998 19:38:14 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id LAA21386; Tue, 22 Sep 1998 11:31:10 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809221031.LAA21386@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "Frank Griffith" cc: freebsd-questions@FreeBSD.ORG Subject: Re: Mailling my Dynamic IP to myself In-reply-to: Your message of "Sat, 19 Sep 1998 20:28:16 CDT." <000301bde435$f2781ec0$0200a8c0@fast1.dfw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 22 Sep 1998 11:31:06 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Thanks everyone for the cool answers on how to > get the dynamic IP my ISP assigns me mailed to > myself. I can at least mail the IP manually. I really > would like to have this done automatically when > I'm away from the machine. Several suggestions > came in on using ppp.linkup, which seems the > obvious choice. So I followed one guys advice and > added this line to my /etc/ppp/ppp.linkup file under the > MYADDR: section > > !bg ifconfig tun0 | mail -s "IP Address" my_mail@my_domain.com > > This did not work. Can anyone tell me why or suggest > something that will? Ppp doesn't treat the ``|'' specially. Get the latest ppp and use !bg sh -c "mail -s \"interface: INTERFACE; address: MYADDR\" my_mail@my_domain.com , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message