Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 1998 19:01:53 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        Scott <sgregory@crosslink.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Running a script after connecting with ppp 
Message-ID:  <199812010101.TAA03862@n4hhe.ampr.org>
In-Reply-To: Message from Scott <sgregory@crosslink.net>  of "Mon, 30 Nov 1998 09:13:57 EST." <3662A825.61E822A6@crosslink.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812010101.TAA03862>