Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!olivea!tymix!cirrusl!sungraph!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.protocols.tcp-ip Subject: Re: sockets vs. streams Message-ID: <2364@cirrusl.UUCP> Date: 5 Sep 90 22:23:47 GMT References: <6964@milton.u.washington.edu> <2350@cirrusl.UUCP> <1990Sep5.020521.803@mlb.semi.harris.com> Sender: news@cirrusl.UUCP Lines: 20 Don Lewis writes: Now, if the printer is on a terminal server somewhere... cat somefile >/dev/tcp/x.x.x.x-y.y Specifically, you could use this for the lp= parameter in /etc/printcap... This would be nice. A possible solution is to write a program "netsend": cat somefile | netsend tcp:x.x.x.x-y.y Since printcap allows sending to a filter rather than a specific device, the solution is general enough. All we need now is for somebody to write it and send it to comp.sources.misc. -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi