Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 2014 22:18:40 +0100
From:      Big Lebowski <spankthespam@gmail.com>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        "ports@FreeBSD.org Ports" <ports@freebsd.org>
Subject:   Re: Reading jail(8) conf files using perl ?
Message-ID:  <CAHcXP%2BdjRf13=AOYx1ra4cGPPSw9jYxeLxTCrKxAOwfwLPtALQ@mail.gmail.com>
In-Reply-To: <20140929193848.GC42709@home.opsec.eu>
References:  <20140929193848.GC42709@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 29, 2014 at 8:38 PM, Kurt Jaeger <lists@opsec.eu> wrote:
> Hi!
>
> Does anyone know of a perl module that reads and writes jail(8) (fbsd 10)
> config files and can point me to it ?
>
> Thanks!
>
> --
> pi@opsec.eu            +49 171 3101372                         6 years to go !
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

Due to some very unfortunate decision made about this, those config
files are looking like usual json files, but they are not json. The
coverage is so close that I had some success parsing them using python
json libs, but at the end I had to write my own grammar dictionary for
them using python's parsley lib. I am aware its not perl, but if you'd
like to see the code to get some idea about it - let me know.

And if we could get these to be *just* standard json files, life would
be so much easier for many of us...

BL



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHcXP%2BdjRf13=AOYx1ra4cGPPSw9jYxeLxTCrKxAOwfwLPtALQ>