Re: Pipe ueber FIFO
Thomas Moritz <[email protected]> Fri, 8 Oct 2010 12:16:38 +0200
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Am Freitag, 8. Oktober 2010 11:39:35 schrieb Thomas Moritz: > Am Freitag, 8. Oktober 2010 07:44:43 schrieb Thomas Moritz: Bevor David wieder was zu meckern hat... :-) Den FIFO erzeuge ich jetzt aus Sicherheitsgruenden mit mktemp. #!/bin/sh myfifo=$(mktemp myfifo.XXXXXX) rm -f $myfifo mkfifo $myfifo trap "rm -f $myfifo" HUP INT TERM EXIT x=0 cat name.txt > $myfifo & while read name; do x=`expr $x + 1` echo "$name" done <$myfifo echo "Var x Ausserhalb von while= $x" Nun muss ich aber erstmal los ... MfG Th. Moritz