I'm trying to prevent a GUI program, which was started from the terminal, to write into the console. To do this, I run guiprogram >&-
. This leads the program to freeze on some operations.
What does the >&-
operator exactly do? What's the intended purpose of it? Can you give any examples? Is it legit to prevent writing into the console by the use of it? Why does the program freeze when closing the standard output?
/dev/null
. – Kusalananda Mar 31 '18 at 11:19&-
operator exactly do? you gave the answer already: It closes the standard output. – apaderno Mar 31 '18 at 11:37