How do I disable the output when you are done with a screen from the screen command?
Example:
function foo()
{
echo "Testing..."
sleep 2
echo "Done!"
}
export -f foo
screen -q bash -c "foo" &> /dev/null
It all works as expected, however I cannot find out how to disable the "[screen is terminating]".
screen -q bash -c "foo" | head -n -1 &> /dev/null. So the real question is why do you care about this one line of text? If you can answer that, then maybe we can find a solution to that problem. – totaam Dec 31 '11 at 19:28