Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 01:03:55 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        Kevin Oberman <rkoberman@gmail.com>, Devin Teske <dteske@freebsd.org>, "freebsd-stable@freebsd.org Stable" <freebsd-stable@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>, Darren Pilgrim <list_freebsd@bluerosetech.com>
Subject:   Re: BIND segway -> python -> first-class ports
Message-ID:  <4174A92E-F202-4FFB-BFED-C38A9D0A7F91@fisglobal.com>
In-Reply-To: <0EC3A50D-A6BE-4F3B-87D6-AB0470F0BA64@gsoft.com.au>
References:  <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org> <622122.74675.bm@smtp120.sbc.mail.gq1.yahoo.com> <20131210224915.GA55638@funkthat.com> <CAN6yY1tSqbrkt5bkjhDW6npT4PAXmMck0Xco%2BERwBE=wkkBDBQ@mail.gmail.com> <52A82099.9080100@bluerosetech.com> <B62F85D0-89E6-4FF8-ADE4-5025FB360462@gsoft.com.au> <D0F85D74-E727-4487-AEA1-B9C16660192E@fisglobal.com> <0EC3A50D-A6BE-4F3B-87D6-AB0470F0BA64@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
--_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 <Devin.Teske@fisglobal.com> wrote:
>> On Dec 11, 2013, at 2:45 AM, Daniel O'Connor wrote:
>> On 11 Dec 2013, at 18:51, Darren Pilgrim <list_freebsd@bluerosetech.com>=
 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
IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjI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8cHJvdmlkZXIpPiQiIHsNCgkJY3VyX3N0cnVjdC0tDQoJfQ0K
CSQxID09ICI8L2dlb20+IiB7DQoJCWN1cl9zdHJ1Y3QtLQ0KCQlzZXRfdmFsdWUoIm5jb25zdW1l
cnMiLCBzdHJ1Y3RfY291bnRbImNvbnN1bWVyIl0pDQoJCXNldF92YWx1ZSgibnByb3ZpZGVycyIs
IHN0cnVjdF9jb3VudFsicHJvdmlkZXIiXSkNCgkJc3RydWN0X2NvdW50WyJjb25zdW1lciJdID0g
MA0KCQlzdHJ1Y3RfY291bnRbInByb3ZpZGVyIl0gPSAwDQoJfQ0KCSQxID09ICI8L2NsYXNzPiIg
ew0KCQlzZXRfdmFsdWUoIm5nZW9tcyIsIHN0cnVjdF9jb3VudFsiZ2VvbSJdKQ0KCQljdXJfc3Ry
dWN0LS0NCgkJc3RydWN0X2NvdW50WyJjb25zdW1lciJdID0gMA0KCQlzdHJ1Y3RfY291bnRbInBy
b3ZpZGVyIl0gPSAwDQoJCXN0cnVjdF9jb3VudFsiZ2VvbSJdID0gMA0KCX0NCgkkMSA9PSAiPC9t
ZXNoPiIgew0KCQlwcmludGYgIk5HRU9NX0NMQVNTRVM9JXVcbiIsIHN0cnVjdF9jb3VudFsiY2xh
c3MiXQ0KCQlkZWxldGUgc3RydWN0X2NvdW50DQoJCW1lc2ggPSAwDQoJfQ0KCScgKSINCn0NCnBh
cnNlX2dlb21fY29uZnhtbA0K

--_004_4174A92EF2024FFBBFEDC38A9D0A7F91fisglobalcom_--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4174A92E-F202-4FFB-BFED-C38A9D0A7F91>