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