accepts stdin commands by file redirection