Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!cheddar.ucs.ubc.ca!panon From: panon@cheddar.ucs.ubc.ca (Paul-Andre Panon) Newsgroups: comp.sys.amiga.applications Subject: Re: ethernet printer sharing Summary: You could do something with 2.0 Keywords: File system, workbench 2.0 Message-ID: <1991Apr16.000321.22471@unixg.ubc.ca> Date: 16 Apr 91 00:03:21 GMT References: <969@boing.UUCP> <2358@swrinde.nde.swri.edu> Sender: news@unixg.ubc.ca (Usenet News Maintenance) Distribution: na Organization: Computing Services, University of British Columbia Lines: 35 Nntp-Posting-Host: cheddar.ucs.ubc.ca In article <2358@swrinde.nde.swri.edu> kent@swrinde.nde.swri.edu (Kent D. Polk) writes: >In article jwright@cfht.hawaii.edu (Jim Wright) writes: >>(TSSnet is DECnet for the Amiga.) How about remote printing using >>tcp/ip? I manage printing to unix with scripts using rcp and rsh, >>but having a real Amiga device such as lpr: or lp: would be great. > >I agree. You can come pretty close to this using CMD, but >there are two problems: > >2) There is not a way (that I know of) for CMD to inform >anyone that a file was just 'printed' and what to do with >it. > Since, with WB2.0, it's possible to have the file system notify a process when a particular file is changed, I presume you could have CMD write to a particular file on the amiga, and have an amiga daemon rcp & lpr the file to your UNIX system (or lpr locally if the Amiga TCP/IP package supports it) when the file system notifies it that the file was changed. Then again, maybe you could use named pipes with 1.3 and 2.0. Have an amiga daemon open a named pipe and send everything it gets from that pipe to lpr and have CMD redirect output to that pipe. Needless to say, I haven't actually done this and the details are left as an exercise to the reader. :-) > >For your regular command-line situations, I sure like my Sksh function >replacements for enscript & lpr :^) (Thanks to Steve Koren) > >Kent Polk - Southwest Research Institute - kent@swrinde.nde.swri.edu -- panon@ucs.ubc.ca or USERPAP1@UBCMTSG or USERPAP1@mtsg.ubc.ca Looking for a .signature? "We've already got one. It is ver-ry ni-sce!"