home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20839 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.7 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!sgiblab!troi!steve
  2. From: steve@dbaccess.com (Steve Suttles)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: local printing out of detached process
  5. Message-ID: <139@mccoy.dbaccess.com>
  6. Date: 12 Jan 93 22:23:07 GMT
  7. References: <1993Jan11.111735.357@csghsg5a.bitnet>
  8. Organization: Cross Access Corp., Santa Clara, CA
  9. Lines: 49
  10. X-Newsreader: Tin 1.1 PL4
  11.  
  12. [ Plaint for "make it not hang" omitted ]
  13.  
  14. : It seems that my original posting wasn't clear enough:
  15. :     PRT is an image which allows you to print on the local printer,
  16. :     which is assigned to your terminal.
  17. :     PRINT doesn't solve the problem because it seems that the local
  18. :     printers are not accessible this way.
  19. :     If you put the  sequence "mc prt type *.txt" into a batchfile 
  20. :     (abc.com) and make a submit abc.com, it doesn't work either;
  21. :     probably because the execution of the batchfile isn't to the
  22. :     terminal the local printer is assigned to.
  23. :     Spawn/nowait mc prt type *.txt also doesn't help for though
  24. :     I get back to the $-prompt I can't work on: no typing is
  25. :     recognized. So it seems to me that the parent process is
  26. :     halted till completion of the subprocess.
  27. :     Is there a solution to this problem? 
  28.  
  29. Yes.  But you won't like it.
  30.  
  31. The "problem" is that "local printer" means it is plugged into the back
  32. of your terminal.  Correct me if I'm wrong.  You are sending escape codes
  33. to the terminal to have it print stuff.  Your communications line is busy.
  34.  
  35. It can be arranged that the output is sent to the printer without tying up the
  36. root process, but the resulting interleaving of your "printout" with the
  37. prompts and your command echo will turn your printout into mishmash.  Your
  38. spawn/nowait is probably echoing your commands, but the echo is probably being
  39. printed.  (check it and see).
  40.  
  41. What you require is a different path to the printer than you use for commands.
  42. VMS doesn't support the logical channeling that would be required, so you are
  43. stuck with a dedicated serial interface or a parallel printer (with a dedicated
  44. interface).  IMHO, this is the "Right" choice anyways, because you can
  45. establish a queue for either kind of printer and make it truly asynchronous.
  46. But this might not be right for you, depending largely on port availability.
  47. And it means rewiring your office, which is something everyone is anxious to
  48. avoid.
  49.  
  50. sas
  51. -- 
  52. Steve Suttles                Internet:  steve@dbaccess.com      Dr. DCL is IN!
  53. CROSS ACCESS Corporation     UUCP: {uunet,sgiblab}!troi!steve  Yo speako TECO!
  54. 2900 Gordon Ave, Suite 100   fax: (408) 735-0328              Talk data to me!
  55. Santa Clara, CA 95051-0718   vox: (408) 735-7545   HA! It's under 4 lines NOW!
  56.