From owner-freebsd-questions@FreeBSD.ORG Tue Apr 17 15:25:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C316C16A402 for ; Tue, 17 Apr 2007 15:25:51 +0000 (UTC) (envelope-from rhingael@mscc.huji.ac.il) Received: from mail3.cc.huji.ac.il (real-outmail.cc.huji.ac.il [132.64.1.21]) by mx1.freebsd.org (Postfix) with ESMTP id 7839313C4BB for ; Tue, 17 Apr 2007 15:25:51 +0000 (UTC) (envelope-from rhingael@mscc.huji.ac.il) Received: from mail3.cc.huji.ac.il (unknown [127.0.0.1]) by mail3.cc.huji.ac.il (Symantec Mail Security) with ESMTP id 3166B320074 for ; Tue, 17 Apr 2007 18:02:55 +0300 (IDT) X-AuditID: 84400115-ad696bb0000072fc-e6-4624e19e995d Received: from pluto.mscc.huji.ac.il (pluto.mscc.huji.ac.il [132.64.178.45]) by mail3.cc.huji.ac.il (Symantec Mail Security) with ESMTP id D7E242DC02E for ; Tue, 17 Apr 2007 18:02:54 +0300 (IDT) Received: from mscc.huji.ac.il (pluto.mscc.huji.ac.il [132.64.178.45]) by pluto.mscc.huji.ac.il (8.13.6/8.13.1) with ESMTP id l3HF2Ptx031169 for ; Tue, 17 Apr 2007 18:02:25 +0300 From: "Ido Admon" To: freebsd-questions@freebsd.org Date: Tue, 17 Apr 2007 18:02:25 +0300 Message-Id: <20070417145352.M39800@mscc.huji.ac.il> X-Mailer: Open WebMail 2.41 20040926 X-OriginatingIP: 85.250.25.150 (rhingael) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Scanned-By: MIMEDefang 2.58 on 132.64.178.45 X-Brightmail-Tracker: AAAAAA== Subject: Execute command upon interface initialization? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 15:25:51 -0000 Hello list, I couldn't find any way to execute an arbitrary command upon network interface initialization. My situations is that I have and ethernet card that takes DHCP from a cables provider (not a fixed IP address) and I need to update a DynDNS hostname everytime it does (everytime the IP changes). I couldn't find a way to execute shell commands using the rc system or dhclient, what did I miss? Sure I could just use cron but that's not very elegant. Thanks and please cc me as I'm not on the list, Ido Admon