redirecting BASH script stdout/stderr from the script itself
[http://www.linuxquestions.org/questions/linux-general-1/redirecting-bash-script-stdout-stderr-from-the-script-itself-636297/] - - public:mepage
#!/bin/bash logfile=$$.log exec > $logfile 2>&1