
January 19th, 2013, 03:15 PM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 5
Time spent in forums: 2 h 1 m 42 sec
Reputation Power: 0
|
|
|
Thank you very much for your quick response. I tested but
i am getting below error message while running as per you recommendation.
did we need to import module related to "populate" ? If so what is that ?
Traceback (most recent call lst):
File "./xyz.py, line 3,in <module>
hostnames=populate(a_file)
NameError: name 'populate' is not defined.
Also my ultimate goal is after i copy directories on various servers, that directory contains couple rpm's which i need to install on each server, open a specific file and search for word an xyz="xyz" and replace "xyz" with "hostname" and another line in the same file, starting with ddd="sss" and replace "sss" with "hostname" , restart deamons by /etc/init.d/xyz restart
your help is very much appericated.
thank you
|