home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21866 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.9 KB

  1. Path: sparky!uunet!ukma!gatech!concert!ais.com!bruce
  2. From: bruce@ais.com (Bruce C. Wright)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Receiving outside messages in a file .. possible ?
  5. Message-ID: <1993Jan23.101553.5958@ais.com>
  6. Date: 23 Jan 93 10:15:53 GMT
  7. References: <01GTT2VGDMN48Y6630@JCSVAX1.BITNET>
  8. Distribution: world
  9. Organization: Applied Information Systems, Chapel Hill, NC
  10. Lines: 38
  11.  
  12. In article <01GTT2VGDMN48Y6630@JCSVAX1.BITNET>, HANY@JCSVAX1.BITNET writes:
  13. >         I am writing a small program that requires the reception of messages
  14. > sent to my address to be captured, in real time, to an open input file.
  15. > For example
  16. > $ FINGER @nodename
  17. > returns a list of logged in users that is output to the screen. When I tried
  18. > DEFINE SYS$INPUT, I still got the list on my screen, and the input file, after
  19. > closing it, was found to be empty. Nothing was directed there.
  20. > DEFINE SYS$OUTPUT also didn't work. Those seem to only work when action is
  21. > taken from within the account. What about text coming from other sources ?
  22. > How can I capture that ?
  23.  
  24. If I understand you correctly, you want to put the output from FINGER
  25. into a file rather than onto your screen.  Defining SYS$INPUT won't
  26. have any effect -- that will only redirect input TO the FINGER program,
  27. not output FROM it.
  28.  
  29. What you probably want to do is
  30.  
  31.     $ define /user sys$output myfile.lis
  32.  
  33. If that doesn't work, then the FINGER program is probably not writing
  34. its output to that source.  You could try:
  35.  
  36.     $ define /user tt myfile.lis
  37.  
  38. This still might not work, depending on how FINGER is writing its output.
  39. This redirection to a file will only work if the program is using RMS
  40. to write its output to the terminal;  if it's using direct QIO calls to
  41. the TTDRIVER, it won't work.  Your only alternative would be to look
  42. into pseudoterminals or possibly mailboxes (some interactive progams
  43. get very upset with mailboxes but are happy with pseudoterminals).
  44.  
  45. Good luck,
  46.  
  47. Bruce C. Wright
  48.