title: How can I create a shell script through a python code?
body: <p>I have written a python code inside which at a certain line I want to write a file xyz.sh but its saying permission denied. I tried to use os.rename() also but it didn't work. Thanks in advance.</p>