View Single Post
Old Jun 23rd, 2005, 6:24 PM   #5
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Be careful of the security implications of using os.system or any other process-spawning method in the os module that takes a string if you're passing user input on as parameters or something. You don't want to give the user of the script access to a shell, do you?
And you're better off using the subprocess module if you're using Python 2.4:
import subprocess
subprocess.call(["program-name", "--param1", "--param2"])
Cerulean is offline   Reply With Quote