Allow checking command exit status
writing data to a command