From owner-freebsd-stable@FreeBSD.ORG Thu Dec 12 01:04:00 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6543B105; Thu, 12 Dec 2013 01:04:00 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1DE0C1A74; Thu, 12 Dec 2013 01:03:59 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.17]) by ltcfislmsgpa04.fnfis.com (8.14.5/8.14.5) with ESMTP id rBC13uGu008905 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 11 Dec 2013 19:03:58 -0600 Received: from LTCFISWMSGMB21.FNFIS.com ([169.254.1.7]) by LTCFISWMSGHT06.FNFIS.com ([10.132.206.17]) with mapi id 14.03.0158.001; Wed, 11 Dec 2013 19:03:56 -0600 From: "Teske, Devin" To: "Daniel O'Connor" Subject: Re: BIND segway -> python -> first-class ports Thread-Topic: BIND segway -> python -> first-class ports Thread-Index: AQHO9oguAMsIQg72sUSzcf93F1B7uw== Date: Thu, 12 Dec 2013 01:03:55 +0000 Message-ID: <4174A92E-F202-4FFB-BFED-C38A9D0A7F91@fisglobal.com> References: <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org> <622122.74675.bm@smtp120.sbc.mail.gq1.yahoo.com> <20131210224915.GA55638@funkthat.com> <52A82099.9080100@bluerosetech.com> <0EC3A50D-A6BE-4F3B-87D6-AB0470F0BA64@gsoft.com.au> In-Reply-To: <0EC3A50D-A6BE-4F3B-87D6-AB0470F0BA64@gsoft.com.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.132.253.120] Content-Type: multipart/mixed; boundary="_004_4174A92EF2024FFBBFEDC38A9D0A7F91fisglobalcom_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2013-12-11_06:2013-12-11,2013-12-11,1970-01-01 signatures=0 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Kevin Oberman , Devin Teske , "freebsd-stable@freebsd.org Stable" , "Teske, Devin" , Darren Pilgrim X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Devin Teske List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 01:04:00 -0000 --_004_4174A92EF2024FFBBFEDC38A9D0A7F91fisglobalcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Dec 11, 2013, at 3:09 PM, Daniel O'Connor wrote: > > On 12 Dec 2013, at 2:16, Teske, Devin wrote: >> On Dec 11, 2013, at 2:45 AM, Daniel O'Connor wrote: >> On 11 Dec 2013, at 18:51, Darren Pilgrim = wrote: >>>> On 12/10/2013 9:34 PM, Kevin Oberman wrote: >>>>> A parseable output from gpart would be wonderful. >>>> >>>> Have you seen the kern.geom.conf* sysctls? >>> >>> Have you tried parsing them from a shell script? :) >>> >> >> Trivial in my honest opinion. I'm just working on other ``more important= '' things. > > I'd be interested in seeing such trivial code. > > Parsing XML using standard shell tools (and without making assumptions ab= out line breaks etc etc) is pretty tedious :( Sure, here we go... see attached "geom_parser-0.0.sh" -- Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. --_004_4174A92EF2024FFBBFEDC38A9D0A7F91fisglobalcom_ Content-Type: application/octet-stream; name="geom_parser-0.0.sh" Content-Description: geom_parser-0.0.sh Content-Disposition: attachment; filename="geom_parser-0.0.sh"; size=2469; creation-date="Thu, 12 Dec 2013 01:03:55 GMT"; modification-date="Thu, 12 Dec 2013 01:03:55 GMT" Content-ID: <2D6BAE29259F79498C00A9D303B0F99D@fisglobal.com> Content-Transfer-Encoding: base64 IyEvYmluL3NoDQouIC91c3Ivc2hhcmUvYnNkY29uZmlnL3N0cnVjdC5zdWJyIHx8IGV4aXQgMQ0K cGFyc2VfZ2VvbV9jb25meG1sKCkNCnsNCgkjIE5COiBDaGFuZ2UgImVjaG8iIHRvICJldmFsIiBi ZWxvdyB0byBwZXJmb3JtIHRoZSBvdXRwdXQNCgllY2hvICIkKCBzeXNjdGwgLW4ga2Vybi5nZW9t LmNvbmZ4bWwgfCBhd2sgJw0KCUJFR0lOIHsNCgkJc3RydWN0X2NvdW50WyJjbGFzcyJdID0gMA0K CQlzdHJ1Y3RfY291bnRbImdlb20iXSA9IDANCgkJc3RydWN0X2NvdW50WyJjb25zdW1lciJdID0g MA0KCQlzdHJ1Y3RfY291bnRbInByb3ZpZGVyIl0gPSAwDQoJfQ0KCSMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIEZVTkNUSU9OUw0KCWZ1bmN0aW9uIHNldF92 YWx1ZShwcm9wLCB2YWx1ZSkNCgl7DQoJCWlmICghc3RydWN0X3N0YWNrW2N1cl9zdHJ1Y3RdKSBy ZXR1cm4gZmFpbHVyZQ0KCQlwcmludGYgIiVzIHNldCAlcyBcIiVzXCJcbiIsDQoJCSAgICAgICBz dHJ1Y3Rfc3RhY2tbY3VyX3N0cnVjdF0sIHByb3AsIHZhbHVlDQoJfQ0KCWZ1bmN0aW9uIGNyZWF0 ZSh0eXBlLCBpZCkNCgl7DQoJCWlmIChzdHJ1Y3QgPSBjcmVhdGVkW3R5cGUgIl8iIGlkXSkgew0K C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