Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Reading and *writing* configuration files

by seanbo (Chaplain)
on Apr 09, 2002 at 12:52 UTC ( [id://157711]=note: print w/replies, xml ) Need Help??


in reply to Reading and *writing* configuration files

You may want to take a look at Perl for System Administration by O'Reilly and Associates. Chapter 5 (TCP/IP Name Services) pages 149-167 describe generating BIND config files from a db. You can make all your changes to the db (through CGI if you like) and then dump the config files from the db. This way, there is no need to parse the existing files because the data is stored in the db.

I highly recommend taking a look at this chapter. Even though the example is rather simplistic and wouldn't suit the needs where I work, it could be easily modified to incorporate the changes we need. We are looking into moving in this direction in the future.

perl -e 'print reverse qw/o b n a e s/;'
  • Comment on Re: Reading and *writing* configuration files

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://157711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 04:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found