If you want to run the command in the background and also use escapeshellcmd() as recommended, ensure you do the redirection outside the brackets! These are things you do want the shell to interpret.
E.g. exec(escapeshellcmd('mycommand and arguments').' > /dev/null &');