So one of the things our Professor has told us about is using a command, like
Code
exec 2> some_file
And putting it at the end of a script or something. So I have an idea of what this does roughly (takes the stderr output from the script you ran it in and sends it to some_file), but what all will it catch specifically?
For scripts does it make sense to use this instead of try/catch blocks? (If they even exist in korn shell, I don't know yet)
Also, is there a similar functionality for modern high level languages like c++/java? Something that will just take all the errors from stderr and funnel them somewhere?
This post was edited by Eep on Feb 21 2013 01:18pm