home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- 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
- From: daniel@nstn.ns.ca (Daniel MacKay)
- Subject: Multiple listeners to a data source
- Message-ID: <1992Jul29.145654.6622@nstn.ns.ca>
- Organization: NSTN Network Operations Centre, Nova Scotia, Canada
- Date: Wed, 29 Jul 1992 14:56:54 GMT
- Lines: 26
-
- Hello!
-
- I will be bringing up a data source in a few days, (it's a connection to a
- weather satellite) that I'd like people to be able to just telnet to a port
- on my machine, and listen in on- say, five or ten people, all with the same
- data scrolling by, kind of like a broadcast ticker tape machine.
-
- I'm looking for suggestions about how to do it. The boneheaded solution is
- to set up a "tail -f" on a file that the data's being dumped into- but I
- was hoping to not save the data- it's jillions of lines a day.
-
- The data will be arriving on a TCP port to which a Perl program will be
- attached; the program will pull out selected data sets and pop them into
- individual files. But I'd also like to make the raw data available to
- whoever wants it in real time.
-
- However- I don't have a clue about how to implement it. A clunky solution
- would be to build a server into the data-consumption program, that accepted
- connections and then fed copies of each line of data to the standard input of
- all its children. But that seems kinda clunky.
-
- Any ideas would be appreciated. Thanks!
- --
- Daniel MacKay daniel@nstn.ns.ca
- NOC Manager, NSTN Operations Centre 902-494-NSTN
- Dalhousie University, Halifax, Nova Scotia, Canada
-