Daemonize shell commands

April 18th, 2008

The following is how to daemonize a shell command and have it write standard output and error to an output-file.

shell-command <&- > output-file 2>&1 &

Replace “shell-command” with the actual command and “output-file” with the name of the file to write to.

Sorry, comments are closed for this article.