MaD dUCK on Sun, 19 Nov 2000 23:19:10 -0500 (EST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Re: dynamic file (script output)


also sprach Walt Mankowski (on Sun, 19 Nov 2000 11:10:31PM -0500):
> It's not a problem because the data never builds up.  See the
> explanation below.

okay. this is weird because i did try this. had one shell window do
this:

while true; do
  echo "now..."
  (echo "testing"; date) > /tmp/myfifo
done

and yes, while the loop would only repeat after a read to the pipe,
the output from the pipe was a little weird. so while running the
while loop in one window, here's what i did in the other:

~> cat /tmp/myfifo
testing
Sun Nov 19 23:16:06 EST 2000
~> cat /tmp/myfifo
testing
Sun Nov 19 23:16:08 EST 2000
testing
Sun Nov 19 23:16:08 EST 2000
~> cat /tmp/myfifo
testing
Sun Nov 19 23:16:13 EST 2000
testing
Sun Nov 19 23:16:13 EST 2000
~> 

why then the duplicates???

martin

  `echo madduck@!#:1:s@\@@@.net`

(greetings from the heart of the sun.)

--
  "all that you touch, all that you see, all that you taste,
   all that you feel, all that you love, all that you hate,
   all you distrust, all that you save, all that you give,
   all that you deal, all that you buy, beg, borrow or steal,
   all you create, all you destroy, all that you do,
   all that you say, all that you eat, everyone you meet,
   all that you slight, everyone you fight, all that is now,
   all that is gone, all that's to come,
   and everything under the sun is in tune,
   but the sun is eclipsed by the moon."
                                                   -- pink floyd, 1972


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug