set IP in linux with python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fscked

    #1

    set IP in linux with python

    I have a text file with some network info like IP, mask, gateway, etc,
    that I want to set on a linux box. This script will run on the host
    that will be getting the new info. I can parse the data in the text
    file and get my data in a list, but I can't figure out how to put it
    in the right place of the config file. Any ideas?

  • fscked

    #2
    Re: set IP in linux with python

    On Jun 12, 1:23 pm, fscked <fsckedag...@gm ail.comwrote:
    I have a text file with some network info like IP, mask, gateway, etc,
    that I want to set on a linux box. This script will run on the host
    that will be getting the new info. I can parse the data in the text
    file and get my data in a list, but I can't figure out how to put it
    in the right place of the config file. Any ideas?
    Nevermind. I ended up recreating thte files required rather than
    appending them.

    Comment

    Working...