home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!mcsun!chsun!Germany.EU.net!esf!helsinki!klaus
- From: klaus@helsinkiesf.de (Klaus Wicovsky)
- Newsgroups: comp.unix.questions
- Subject: How to handle data from stdin in a sh script
- Message-ID: <5725@esf.esf.de>
- Date: 5 Nov 92 11:23:17 GMT
- Sender: news@esf.esf.de
- Reply-To: klaus@helsinkiesf.de (Klaus Wicovsky)
- Organization: ESF Headquarters, Berlin, FRG
- Lines: 21
- Nntp-Posting-Host: helsinki
-
-
- Here is the problem: I would like to pipe data into a sh script and still be able to interact with the sh script (ask questions to the user).
-
- Whatever I do, I don't seem to be able to get rid of the "piped" data, i.e. I put something like:
-
- echo -n "Please confirm:"
- read conf
-
- and the input stream seems to answer all questions.
-
- Any ideas?
-
-
-
- --
- Klaus Wicovsky
-
- ESF Headquarters Tel : ++49+30-820 903 47
- Hohenzollerndamm 152 Fax : ++49+30-820 903 19
- 1000 Berlin 33 UUCP: klaus@esf.de
- Germany
-