I am using Mac osx Mountain Lion for development.
I am trying to execute a shell command in php using the 'exec' function. At the end of my command I am putting the output to > /dev/null 2>dev/null &.
However it does not work and the error in /var/log/apache2/error_log is:
sh: dev/null: Permission denied
How can I get this to work without throwing this error?