By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,310 Members | 1,944 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,310 IT Pros & Developers. It's quick & easy.

Return stdin to keyboard

P: n/a
Hello.

Is it possible to return stdin to keyboard after redirecting it? For
example after command "myprogram.exe < data.txt", when I finish reading
from file I would like to be able to use keyboard. How is it done in
"more" command?

Thanks.

--
Wodny
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Wodny wrote:
Is it possible to return stdin to keyboard after redirecting it?
If it's possible to redirect stdin once, it should be possible to re-
redirect it, don't you think?
For
example after command "myprogram.exe < data.txt", when I finish reading
from file I would like to be able to use keyboard. How is it done in
"more" command?


I don't know about 'more', but it's quite possible that it has to use
OS-specific means of reading from the keyboard (or TTY or whatever is
there). Try an OS-specific newsgroup.

V
Jul 23 '05 #2

P: n/a
Victor Bazarov wrote:
Wodny wrote:
Is it possible to return stdin to keyboard after redirecting it?


If it's possible to redirect stdin once, it should be possible to re-
redirect it, don't you think?


I do think so, but I don't know how. Because the first redirection is
done by the console and the second one by the program.
For
example after command "myprogram.exe < data.txt", when I finish
reading from file I would like to be able to use keyboard. How is it
done in "more" command?

[...] it's quite possible that it has to use
OS-specific means of reading from the keyboard (or TTY or whatever is
there). Try an OS-specific newsgroup.


I will do so.

Thank You.

--
Wodny
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.