tf2012
asked on
Edit linux file using python
I need to automate the modification of a line in the /etc/default/rsC file on Debian Wheezy using a python script
I want to change  FSCKFIX=no to FSCKFIX=yes as root
any idea how to do that?
I want to change  FSCKFIX=no to FSCKFIX=yes as root
any idea how to do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As long as you put the full path to sed (usually /bin/sed), yes.
ASKER
thanks!
ASKER