Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Update config file parameters

by dbuckhal (Chaplain)
on Jan 06, 2016 at 22:37 UTC ( [id://1152125]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MData::Dumper -e '
      $conf = {
    ...
      open( $fh, ">", "monkConfig.txt" ) or die;
      print $fh Data::Dumper->Dump([$conf],["config"]);
    '
    
  2. or download this
    $config = {
                'TYPE' => 'Ethernet',
    ...
                'IPADDR' => 10.9.0.200,
                'BOOTPROTO' => 'static'
              };
    
  3. or download this
    perl -le 'require "monkConfig.txt";
      print $config->{'TYPE'};
    ...
    
    __output__
    Ethernet
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found