output redirection and command execution