Re: [Bacula-users] How to parse Bacula conf files

2010-11-01 Thread Martin Simmons
> On Mon, 1 Nov 2010 11:54:05 -0400, John Drescher said: > > The problem is posts from the backup central forums > http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/ > > for some reason are sent to the mailing list as text but have html > codes in them.

Re: [Bacula-users] How to parse Bacula conf files

2010-11-01 Thread John Drescher
On Mon, Nov 1, 2010 at 11:39 AM, Bruno Friedmann wrote: > Ok when people will stop posting html converted perhaps we will try to read > their demand. The problem is posts from the backup central forums http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/ fo

Re: [Bacula-users] How to parse Bacula conf files

2010-11-01 Thread Bruno Friedmann
Ok when people will stop posting html converted perhaps we will try to read their demand. On 11/01/2010 02:58 PM, catkins wrote: > Here's a bash-with-embedded awk scrippet that parses Bacula .conf files. I > don't know if it works with all possible permutations of .conf file layout > (it's o

[Bacula-users] How to parse Bacula conf files

2010-11-01 Thread catkins
Here's a bash-with-embedded awk scrippet that parses Bacula .conf files. I don't know if it works with all possible permutations of .conf file layout (it's only tested on my own). It uses supporting functions ck_file, finalise and msg but they only do the obvious and are not significant in the

Re: [Bacula-users] How to parse Bacula conf files

2010-10-22 Thread Josh Fisher
On 10/21/2010 8:42 AM, Stefan Muenkner wrote: > On 20.10.2010 16:25, Josh Fisher wrote: >> On 10/19/2010 8:28 AM, Yuri Timofeev wrote: >>> Hi >>> >>> During development the prototype of the my new system (Webacula 5.5), >>> I tried to parse the bacula-dir.conf. >>> However, this is probably not po

Re: [Bacula-users] How to parse Bacula conf files

2010-10-21 Thread Stefan Muenkner
While I think it might be worthwhile having the configuration dumped in XML (== machine readable format), I think the other way around is not something that would be needed in bacula itself. There is a whole bunch of XSLT processors that would transform a XML-file into a bacula configuration file.

Re: [Bacula-users] How to parse Bacula conf files

2010-10-21 Thread Stefan Muenkner
On 20.10.2010 16:25, Josh Fisher wrote: > > On 10/19/2010 8:28 AM, Yuri Timofeev wrote: >> Hi >> >> During development the prototype of the my new system (Webacula 5.5), >> I tried to parse the bacula-dir.conf. >> However, this is probably not possible with simple regexp's. >> It turned out that s

Re: [Bacula-users] How to parse Bacula conf files

2010-10-20 Thread Josh Fisher
On 10/19/2010 8:28 AM, Yuri Timofeev wrote: > Hi > > During development the prototype of the my new system (Webacula 5.5), > I tried to parse the bacula-dir.conf. > However, this is probably not possible with simple regexp's. > It turned out that some applications, for example, Webmin does this >

Re: [Bacula-users] How to parse Bacula conf files

2010-10-20 Thread John Doe
From: Craig Miskell > Yuri Timofeev wrote: > > During development the prototype of the my new system (Webacula 5.5), > > I tried to parse the bacula-dir.conf. > > However, this is probably not possible with simple regexp's. > Yes it is very difficult, at least with a RegEx. Maybe have a look

Re: [Bacula-users] How to parse Bacula conf files

2010-10-19 Thread Craig Miskell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuri Timofeev wrote: > Hi > > During development the prototype of the my new system (Webacula 5.5), > I tried to parse the bacula-dir.conf. > However, this is probably not possible with simple regexp's. > It turned out that some applications, for exa

[Bacula-users] How to parse Bacula conf files

2010-10-19 Thread Yuri Timofeev
Hi During development the prototype of the my new system (Webacula 5.5), I tried to parse the bacula-dir.conf. However, this is probably not possible with simple regexp's. It turned out that some applications, for example, Webmin does this with a regexp. But they're doing it wrong! For example,