I am trying to run a command with subprocess.check_output without using shell=True keyword argument. My command is this:
command --parameter="something with spaces"
With this:
subprocess.check_output(['command', '--parameter="something with spaces"'])
command becomes to this:
command "--parameter=\"something with spaces\""
And with this:
subprocess.check_output(['command', '--parameter=', 'something with spaces'])
command becomes to this(white space after =):
command --parameter= "something with spaces"
Is there a proper way to do that without using shell=True