From owner-freebsd-questions Mon Nov 30 18:08:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA26753 for freebsd-questions-outgoing; Mon, 30 Nov 1998 18:08:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from n4hhe.ampr.org (tnt3-26.HiWAAY.net [208.147.146.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA26747 for ; Mon, 30 Nov 1998 18:08:05 -0800 (PST) (envelope-from dkelly@n4hhe.ampr.org) Received: from n4hhe.ampr.org (localhost.ampr.org [127.0.0.1]) by n4hhe.ampr.org (8.9.1/8.9.1) with ESMTP id TAA03862; Mon, 30 Nov 1998 19:01:53 -0600 (CST) (envelope-from dkelly@n4hhe.ampr.org) Message-Id: <199812010101.TAA03862@n4hhe.ampr.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Scott cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: Running a script after connecting with ppp In-reply-to: Message from Scott of "Mon, 30 Nov 1998 09:13:57 EST." <3662A825.61E822A6@crosslink.net> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-12455976100" Date: Mon, 30 Nov 1998 19:01:53 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multipart MIME message. --==_Exmh_-12455976100 Content-Type: text/plain; charset=us-ascii Scott writes: > I would like to run a script (more specifically, I would like to send my > IP address to a mail account (ifconfig -a | mail user - would suffice)) > whenever my box connects to my provider. I thought I had seen info on > this in the past but I cannot find it now. Any info on how to do this > would be appreciated. I use pppd, and don't always want such an automatic action to be run. Have attached the script I run from cron which starts pppd, uploads and downloads email, and updates my rc5des buffer (all three at once, not one after the other) then disconnects. Script is a bit more verbose than it needs to be. --==_Exmh_-12455976100 Content-Type: text/plain ; name="cronjobs"; charset=us-ascii Content-Description: cronjobs Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cronjobs" IyEvYmluL3NoCgojIHN0dWZmIHRoYXQgbmVlZHMgdG8gYmUgZG9uZSBwZXJpb2RpY2FsbHkg ZnJvbSBjcm9uCiMgd2l0aCBhbiBlc3RhYmxpc2hlZCBpbnRlcm5ldCBsaW5rLgojCiMgZG1r IDcvMTEvOTgKCmRhdGUKcHBwZAoKIwojIHdhaXQgdW50aWwgdGhlIGxpbmsgaXMgZXN0YWJs aXNoZWQKIwpjb3VudD0wCndoaWxlIFsgYG5ldHN0YXQgLUkgcHBwMCB8IHdjIC1sYCAtbmUg MyBdCmRvCgljb3VudD1gZXhwciAkY291bnQgKyAxYAoJaWYgWyAkY291bnQgLWd0IDEwIF0K CXRoZW4KCQllY2hvICJOZXR3b3JrIGxpbmsgZmFpbGVkIgoJCWtpbGxhbGwgcHBwZAkjIGp1 c3QgaW4gY2FzZQoJCWV4aXQgMQoJZmkKCXNsZWVwIDEwCgkjZWNobyAkY291bnQKZG9uZQoK ZWNobyAiU2hlbGwgUElEIGlzOiAiICQkCgooCgllY2hvICJzdWJzaGVsbCBQSUQgaXM6ICIg JCQKCglzZW5kbWFpbCAtcSAmCglmZXRjaG1haWwgLS1zaWxlbnQgJgoJKCBjZCAkSE9NRS9y YzU7IC4vcmM1ZGVzIC11cGRhdGUgKSAmCgoJd2FpdAoKCWVjaG8gImtpbGxhbGwgcHBwZCIK CWtpbGxhbGwgcHBwZAoJCglkYXRlCgoJZWNobyAia2lsbCAwICIKCWtpbGwgMCAyPiAvZGV2 L251bGwKKSAmCgojCiMgMTAgbWludXRlcyA9IDYwMCBzZWNvbmRzCiMgMTUgbWludXRlcyA9 IDkwMCBzZWNvbmRzCiMKc2xlZXAgMTIwMAoKc2V0IC0tIGBqb2JzYApraWxsICQyCmtpbGxh bGwgcHBwZApkYXRlCg== --==_Exmh_-12455976100 Content-Type: text/plain; charset=us-ascii -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. --==_Exmh_-12455976100-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message