check if program accept input on stdin