In bash, standard (1) and error (2) output can be re-routed and discarded with:
>/dev/null 2>&1
But the following example does something different:
nohup myscript.sh >myscript.log 2>&1 </dev/null &
What is the meaning/function of </dev/null
in the example above? In what sort of scripting scenario would it be useful?