I have a CherryPy service that executes an .exe utility when called. The utility accepts command line arguments and I use using subprocess.call() method like below to execute it.
import os
import subprocess
arguments = ['utility.exe' ,'/swtich1','/switch2', 'filea.csv','fileb.csv','outputfile.csv' ]
subprocess.call(arguments)
The utility creates 'outputfile.csv' file using the 'filea.csv','fileb.csv' file as input.
This works fine when the service is run directly using cherryPy.
But when the script is integrated to Apache using mod-wsgi, the utility do not produce correct output. The utility creates the output file, but the data within it is not correct.
Am I missing anything here.