Skip to main content
deleted 43 characters in body
Source Link
Håkon Hægland
  • 40.9k
  • 22
  • 96
  • 210

If you are on Windows, you should use double quotes instead of single quotes:

For example:

cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) 

See also:

If you are on Windows, you should use double quotes instead of single quotes:

For example:

cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) 

See also:

If you are on Windows, you should use double quotes instead of single quotes:

For example:

cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) 

See also:

Source Link
Håkon Hægland
  • 40.9k
  • 22
  • 96
  • 210

If you are on Windows, you should use double quotes instead of single quotes:

For example:

cmd = 'perl -pe "s|hskip|hspace|g" in.txt > out.txt' ret = subprocess.call(cmd, shell=True) print("return value: {}".format(ret)) 

See also: