No, you can't read that back. That STDIN comes from a pipe,
and pipes aren't seekable. If you can't modify the original
code for some reason (which seems strange, because you can
modify something or you wouldn't ask this), you can always
put it into a wrapper.
Abigail