This comes up frequently with trying to run puppet agent -t but is useful in some other circumstances too.