/bin/sh: 1: Syntax error: “(” unexpected
You have a bashism. It is not valid according to POSIX, which is what /bin/sh
implements.
More Related Contents:
- subprocess.call() arguments ignored when using shell=True w/ list [duplicate]
- Running shell command and capturing the output
- Using sudo with Python script
- Python: execute cat subprocess in parallel
- live output from subprocess command
- Execute terminal command from python in new terminal window?
- How do I pipe a subprocess call to a text file?
- how to run python script without typing ‘python …’
- File not found error when launching a subprocess containing piped commands
- Python – Activate conda env through shell script
- running multiple bash commands with subprocess
- Call Python script from bash with argument
- Python output to Console within Subprocess from the child scricpt
- python getoutput() equivalent in subprocess [duplicate]
- Python subprocess .check_call vs .check_output
- ‘yes’ reporting error with subprocess communicate()
- Conda command working in command prompt but not in bash script
- How to store the result of an executed shell command in a variable in python? [duplicate]
- Interacting with bash from python
- Run BASH built-in commands in Python?
- When to use Shell=True for Python subprocess module [duplicate]
- Launch a python script from another script, with parameters in subprocess argument
- Change working directory in shell with a python script
- Python: subprocess call with shell=False not working
- Bash style process substitution with Python’s Popen
- Why does subprocess.Popen() with shell=True work differently on Linux vs Windows?
- Execute Subprocess in Background
- Calling a Python function from a shell script
- Cannot find the file specified when using subprocess.call(‘dir’, shell=True) in Python
- run python script directly from command line