I usually use the &- with exec but IMHO the first command is to close the myscript stdout
But the second one is just redirecting all the output of the script to /dev/null (It is just if you don't care what is the output of that file - just like discarding the output)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.