I have written a daemon which closes all std file descriptors. Now this deamon fork-exec's a shell script. Since the script has a number of echo's and i need a way to re-direct it to /dev/null
Since this seems to change a deal of scripts , i was hoping to re-direct the output by setting process parameters to /dev/null. Is this possible with one of
the exec functions ?