set IP in linux with python

F

fscked

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?
 
F

fscked

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top