I try to run a command in a python script that I want to run the following in a web page, for that I used the spawn with os.popen (), but the problem is that I run the python script directly with all works well, while running from the server I have the following error message:
WindowsError: [Error 5] Access denied: 'C:\\WINDOWS\\system32\\cmd.exe /c gdal_translate wcs.xml wcs.tif'
here's part of my script or do I call:
# The command to execute
com = 'gdal_translate C:\Inetpub\wcs.xml C:\Inetpub\wcs.tif'
# Spawn process:
child = os.popen (com)
child.close ()
Bookmarks