The second Redirect will never kick in. And the script won't do anything at all cept writing a "0" for no error to the "~" file.