From: Zundra Daniel Date: 2009-10-08T04:15:21+09:00 Subject: Safe command line execution --00163630fe43e1e91c04755d2a4f Content-Type: text/plain; charset=ISO-8859-1 Hi all. I have a application that needs to execute a system call via command line. However, the problem I'm running into is this particular command takes a username and password both of which can be any pattern and combination of special characters. Does anyone know of a way to safely execute this command with these free form parameters without risk of malicious code being inadvertently executed? The pattern of the command is as follows: /usr/bin/cmd -username #{username} -password #{password} --00163630fe43e1e91c04755d2a4f--