Can detect if input redirection is called