home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / apps / 6053 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.2 KB  |  52 lines

  1. Newsgroups: comp.os.msdos.apps
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!caen!destroyer!cs.ubc.ca!news.UVic.CA!ugly!rhorner
  3. From: rhorner@ugly.UVic.CA (Roger  Horner)
  4. Subject: Re: Printing from Unix to a printer attached to PC terminal
  5. Message-ID: <1993Jan8.203348.10520@sol.UVic.CA>
  6. Sender: news@sol.UVic.CA
  7. Nntp-Posting-Host: ugl-gw.uvic.ca
  8. Organization: University of Victoria, Victoria, BC, Canada
  9. References: <2B4DDB1A.14864@ics.uci.edu>
  10. Date: Fri, 8 Jan 93 20:33:48 GMT
  11. Lines: 39
  12.  
  13. In article <2B4DDB1A.14864@ics.uci.edu> wngai@bonnie.ics.uci.edu (Wayne Ngai) writes:
  14. >    Hi!  I was wondering if there is/are any existing program(s) out
  15. >there that would allow for a PC terminal to print a file on the Unix
  16. >machine to the local printer that's attached to the PC terminal. e.g.
  17. >say I'm hook up to a Unix machine via modem, and I want to print a
  18. >file on the Unix machine to my PC printer.  Is there anyway of doing
  19. >that without having to download the file to my PC and do some
  20. >conversion to printout the file?  i.e. sending the print job to
  21. >printer attached to terminal.  If there is such a program, could some
  22. >kind soul please tell me where and how can I get a hold of it?
  23.  
  24. There is a C program at oak.oakland.edu in /pub/msdos/kermit called pcprint.c.
  25. You can either download this file and compile it on your UNIX machine, or you
  26. can create the following csh script file which was copied from the MS-KERMIT
  27. USERS GUIDE:
  28. -----------------------------CUT HERE-------------------------------
  29. #!/bin/sh
  30. # pcprint
  31. # usage: pcprint file(s)
  32. # or <any UNIX process that writes to standard output> | pcprint
  33. #
  34. echo -n '[5i'
  35. if [ $# -eq 0 ]; then
  36.   cat
  37. else
  38.   cat $*
  39. fi
  40. echo -n '[4i'
  41. -----------------------------CUT HERE-------------------------------
  42.  
  43. Both of these programmes use a feature of the VT100 terminal which many but not
  44. all terminal emulators provide (MS-KERMIT and Bitcom do, but Q-Modem does not).
  45.  
  46. I hope this helps.
  47. -- 
  48. -------------------------------------------------------------------------------
  49. Roger Horner (rhorner@sirius.UVic.ca)                    University of Victoria
  50. 4th Year Electrical Engineering Student                  Victoria, BC, Canada
  51.               If you don't like my spelling, use a real dictionary!
  52.