Hi I start a python script by using python script.py.
But I need to write into a file which is inside the /usr/local/etc folder that requires permission of root. So I think I need to spawn a child process with sudo; the password to run the as sudo must be hardcoded into the script.
How do I do it?
 
    