Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    This does not work. When I run my program as I specified in the question with redirected input, ./program < input.txt, only ./program is printed. I still do not see the contents of input.txt with the output. Commented Apr 16, 2014 at 16:05
  • The set -x needs to be the first line of your program.sh. Commented Apr 16, 2014 at 16:34
  • program is a binary, not a script Commented Apr 16, 2014 at 18:34
  • Isn't the entire interaction being shown on the terminal? Also, are those scanf / stdin statements? Commented Apr 16, 2014 at 18:38
  • the output is shown on the terminal, but when I redirect input with <, the input is just fed into the program and not shown. Commented Apr 16, 2014 at 19:15