Quantcast
Channel: Should I execute bash scripts from python with `bash` or `./`? - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by Samuel for Should I execute bash scripts from python with `bash` or...

First, regarding the dot in ./script.sh, this indicates that script.sh can be found in the working directory, it means something like "look for script.sh here, in this directory". This is known as dot...

View Article



Should I execute bash scripts from python with `bash` or `./`?

I wrote a Python script that executes some bash scripts like this: cmd = subprocess.Popen(['bash', 'script.sh']) That way it executes the script although I didn't set execute permissions with chmod. I...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images