How To Run Long Python Script Without Re-prompt For Credentials
I have a Python script, let's say install.py (which I am running as sudo), on OS X that installs homebrew, Xcode, pip, ruby, swig, and, ultimately, salt. The problem is that runnin
Solution 1:
In Python, check your os.getcwd()
, you're probably running from a funky place.
Try passing cwd='/tmp'
to process.Popen()
. Everyone has permissions to /tmp
!
Post a Comment for "How To Run Long Python Script Without Re-prompt For Credentials"