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