Redirect check shell script