[cs631apue] Suspend stdin, wait for another user input
Hongyi Shen
hshen4 at stevens.edu
Thu Nov 28 03:39:17 EST 2013
This problem has frustrated me for hours.
In the requirement of HW5,
echo "Kookaburra has left the tree" | aed -e | aed -d
Then we want user to input passphrase, but scanf will read "Kookaburra
has left the tree" first, instead of waiting for user's passphrase.
(When use pipe, isatty might be a way)
Thank you all, enjoy the holiday.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131128/b63ee587/attachment.htm>
More information about the cs631apue
mailing list