perfsonar-user - RE: [perfsonar-user] perfsonar config file format rant
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: SCHAER Frederic <>
- To: "" <>
- Subject: RE: [perfsonar-user] perfsonar config file format rant
- Date: Thu, 17 Mar 2016 11:24:25 +0000
- Accept-language: fr-FR, en-US
Hi Andrew, OK Thanks for the information. Ahhh perl… ;) I’ll see if I can run some perl one-liners to work with this file then. Thanks Frederic De : Andrew Lake [mailto:]
Hi, Thanks for the comment. You are correct, it is not XML nor is it intended to be. It is Apache config file format, and mirrors what the format the
Apache web server uses. In Perl, the primary module used to parse such files is called Config::General (http://search.cpan.org/dist/Config-General/General.pm). As with all config file formats
there are advantages and disadvantages. It’s a rather popular format in the Perl world which is what most of the tools are or were originally written in years ago. You can find libraries to parse it in other languages, though admittedly the libraries are not
always as popular(i.e. well-supported). There are no CLI tools provided by perfsonar to manipulate it, though its should be possible to write a perl script to do hat you want with Config::General or (depending on what you are doing) use template features of
you config management software. If all else fails I’ve always been able to get away with some old fashioned sed commands in our configuration management rules on ESnet but it depends what you are trying to do I guess. Thanks, Andy On March 16, 2016 at 6:20:13 AM, SCHAER Frederic () wrote:
|
- [perfsonar-user] perfsonar config file format rant, SCHAER Frederic, 03/16/2016
- Re: [perfsonar-user] perfsonar config file format rant, Andrew Lake, 03/16/2016
- RE: [perfsonar-user] perfsonar config file format rant, SCHAER Frederic, 03/17/2016
- Re: [perfsonar-user] perfsonar config file format rant, Mark Feit, 03/17/2016
- RE: [perfsonar-user] perfsonar config file format rant, SCHAER Frederic, 03/17/2016
- Re: [perfsonar-user] perfsonar config file format rant, Andrew Lake, 03/16/2016
Archive powered by MHonArc 2.6.16.