I want to execute the following command:
ssconvert /data/sam.xls,/data/test.csv
I have tried:
p = subprocess.Popen(["ssconvert", '/data/sam.xls','/data/test.csv'], stdout=subprocess.PIPE,shell=True)
out = p.communicate()
print"output", out
but it's not working.
How can I solve this issue?
This is worked
import subprocess
subprocess.call(["ssconvert","sample.xlsx","sample.csv"],cwd="pathtoyourfile") # pathtoyourfile must contain the xlsx and csv files