I understand > /dev/null
redirects things to /dev/null
which acts like a blackhole. However, I don't understand what < /dev/null
means. I saw some script written like this:
nohup myprogram > foo.out 2> foo.err < /dev/null &
So, what does < /dev/null
in the code above mean?
here's an example where it's suggested
<&-
do?