home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 5015 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!utcsri!torn!csd.unb.ca!morgan.ucs.mun.ca!nstn.ns.ca!daniel
  3. From: daniel@nstn.ns.ca (Daniel MacKay)
  4. Subject: Multiple listeners to a data source
  5. Message-ID: <1992Jul29.145654.6622@nstn.ns.ca>
  6. Organization: NSTN Network Operations Centre, Nova Scotia, Canada
  7. Date: Wed, 29 Jul 1992 14:56:54 GMT
  8. Lines: 26
  9.  
  10. Hello!
  11.  
  12. I will be bringing up a data source in a few days, (it's a connection to a
  13. weather satellite) that I'd like people to be able to just telnet to a port
  14. on my machine, and listen in on- say, five or ten people, all with the same
  15. data scrolling by, kind of like a broadcast ticker tape machine.
  16.  
  17. I'm looking for suggestions about how to do it.  The boneheaded solution is
  18. to set up a "tail -f" on a file that the data's being dumped into- but I
  19. was hoping to not save the data- it's jillions of lines a day.
  20.  
  21. The data will be arriving on a TCP port to which a Perl program will be
  22. attached; the program will pull out selected data sets and pop them into
  23. individual files.  But I'd also like to make the raw data available to
  24. whoever wants it in real time.
  25.  
  26. However- I don't have a clue about how to implement it.  A clunky solution
  27. would be to build a server into the data-consumption program, that accepted
  28. connections and then fed copies of each line of data to the standard input of
  29. all its children.  But that seems kinda clunky.
  30.  
  31. Any ideas would be appreciated.  Thanks!
  32. --
  33.     Daniel MacKay                daniel@nstn.ns.ca
  34.     NOC Manager, NSTN Operations Centre    902-494-NSTN
  35.     Dalhousie University, Halifax, Nova Scotia, Canada
  36.