<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SET HOST /LOG logfile in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119478#M25773</link>
    <description>We're going to use a logging program which uses a pseudoterminal to capture the output.&lt;BR /&gt;&lt;BR /&gt;Thanks for all the interesting suggestions.</description>
    <pubDate>Fri, 18 Jul 2008 18:56:57 GMT</pubDate>
    <dc:creator>Michael Moroney</dc:creator>
    <dc:date>2008-07-18T18:56:57Z</dc:date>
    <item>
      <title>SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119464#M25759</link>
      <description>Quick question:  Is there an equivalent to SET HOST 0/LOG=whatever.log that allows someone to examine "whatever.log" by typing it while the SET HOST session is still active?  Also, is there any way for an application to get a logged terminal session by assigning a channel to a terminal and doing $QIOs to it.  This is similar to SET HOST/LOG but initiated differently.</description>
      <pubDate>Tue, 15 Jul 2008 15:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119464#M25759</guid>
      <dc:creator>Michael Moroney</dc:creator>
      <dc:date>2008-07-15T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119465#M25760</link>
      <description>1: Probably easier to use a client-side widget such as the screen utility or VCS.  Alternatively, there are widgets such as peek and spy that can probably be pressed into service.&lt;BR /&gt;&lt;BR /&gt;2: Your host I/O is aimed away from the host and toward the terminal, and not in toward the host from the terminal.  Which means something akin to a pseudo-terminal would be one way to do this.  &lt;BR /&gt;&lt;BR /&gt;Poke around and there are some other screen-scraping tools around.&lt;BR /&gt;&lt;BR /&gt;I recall that somebody posted one such tool in response to an other recent thread; I'd suggested pseudo-terminals in that thread, so you have a search target.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jul 2008 16:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119465#M25760</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-07-15T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119466#M25761</link>
      <description>I suspect you would have to roll your own using the Psuedo Terminal Driver.&lt;BR /&gt;A good starting point would be: SYS$COMMON:[SYSHLP.EXAMPLES]ALPHA_LOGGER.C&lt;BR /&gt;There may well be others out there.&lt;BR /&gt;&lt;BR /&gt;SET HOST/LOG is RTPAD opening a log file non-shared. No RMS locks to poke to get it to flush, just a file system lock.&lt;BR /&gt;For RMS it uses the default settings which are often 16KB buffers, and it does not have a (timer based) flush. So the process might never write to disk untill the end.&lt;BR /&gt;&lt;BR /&gt;So if you know you want to 'see' the data on the disk, then you may want to issue SET RMS/BLOCK=1. This will force an IO for every 512 bytes of data. You can then uses DUMP (in a round-about-way to find the LBN's) to see the data on the disk.&lt;BR /&gt;&lt;BR /&gt;I own a tool which can 'clone' the locked file into an other file for a sneak peak, but it can only clone what is out there, not what is still in the process memory.&lt;BR /&gt;&lt;BR /&gt;For desperate, or just one-off support inverstigation, cases you could of course also use SDA to directly peak into the process RMS memory. &lt;BR /&gt;This is not too too hard.&lt;BR /&gt;$ANALYZE/SYSTEM&lt;BR /&gt;SDA&amp;gt; SET PROC &lt;SET-HOST-LOG-PROC&gt;&lt;BR /&gt;SDA&amp;gt; SHOW PROC/RMS=(RAB,BDBSUM)&lt;BR /&gt;&lt;BR /&gt;The RBF/RSZ in the RAB will describe the last record put out there.&lt;BR /&gt;&lt;BR /&gt;The RFA in the RFA will describe the VBN + byte-offset where to expect the last data in the blcok buffer.&lt;BR /&gt;&lt;BR /&gt;The VBN field in the BDBSUM will indicate the block range for the buffer. The ADDR field will point to the data in memory.&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt;examine &lt;ADDR&gt;;&lt;NUMB&gt;&lt;BR /&gt;... enjoy!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NUMB&gt;&lt;/ADDR&gt;&lt;/SET-HOST-LOG-PROC&gt;</description>
      <pubDate>Tue, 15 Jul 2008 18:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119466#M25761</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-15T18:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119467#M25762</link>
      <description>Thanks.  This will be for an ongoing need, so I need more than SDA.  Pseudoterminals appear to be what I need, and some searching has revealed some code that can be adapted, and it has the icky pseudoterminal portion of the code already written.&lt;BR /&gt;&lt;BR /&gt;What I will come up with is something that sits between a pseudoterminal and a (real) terminal that acts very much like SET HOST/LOG 0, except the log file will be sharable, it will work both ways (that is, one can open a channel to the FTAx: device and data written to it will be logged as well as being able to "log in" on the FTAx: pseudoterm), and, of course, no need for network stuff.  Hein's SET RMS/BLOCK=1 may be a stopgap if CONVERT/SHARE or BACKUP/IGNORE=INTERLOCK can read the SET HOST log file.</description>
      <pubDate>Tue, 15 Jul 2008 20:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119467#M25762</guid>
      <dc:creator>Michael Moroney</dc:creator>
      <dc:date>2008-07-15T20:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119468#M25763</link>
      <description>&amp;gt;&amp;gt;  if CONVERT/SHARE or BACKUP/IGNORE=INTERLOCK can read the SET HOST log file.&lt;BR /&gt;&lt;BR /&gt;Sorry, no go.&lt;BR /&gt;CONVERT will refuse to open the file.&lt;BR /&gt;BACKUP will honor the EOF mark, which is at 0.&lt;BR /&gt;BACKUP badly needs an /IGNORE=EOF, but suggestions to that extent have not been folowed up. I'll Email you something, but O do not want to send it to 'the world' (that's a joke just for Mike).&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jul 2008 20:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119468#M25763</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-15T20:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119469#M25764</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;  First question, yes, there is a way, but it's a bit klunky - use process permanent files.&lt;BR /&gt;&lt;BR /&gt;$ OPEN/WRITE/SHARE mylog whatever.log&lt;BR /&gt;$ SET HOST 0/LOG=mylog&lt;BR /&gt;&lt;BR /&gt;Output from the session is now written to the log file "whatever.log" as shared access.&lt;BR /&gt;&lt;BR /&gt;As Hein says, the EOF won't be updated unless necessary, so TYPE or even CONVERT/SHARE don't help, BUT you can update the EOF with the sequence:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/APPEND/SHARE tmp whatever.log&lt;BR /&gt;$ CLOSE tmp&lt;BR /&gt;&lt;BR /&gt;from any process with appropriate access to the file. This includes the session being logged. (but it gets a bit confusing if you TYPE the log file - it's also exponential growth, so be careful!).&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;The EOF is now up to date, and commands like TYPE and SEARCH will work up to that point in time. The EOF will be set at the end of the CLOSE, so if you do it from the session being logged, the CLOSE command will be visible.&lt;BR /&gt;&lt;BR /&gt;Obviously this isn't something you can do after the session has started, and you need a cooperative target.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Second question... you can't capture the activity on a terminal with ordinary $QIOs. Although you can open a channel to a terminal with SHARE privilege, an I/O operation will only go to one destination. So if you read from the terminal, you will "steal" input from the user, preventing it from going to the logged in process.&lt;BR /&gt;&lt;BR /&gt;There are various utilities around for capturing screen sessions. They have names like "SPY" or "WATCH". They do stuff at driver level to intercept I/O. They're also notorious for crashing systems, so be careful. You may find freeware, but I think there are also some commercial offerings.</description>
      <pubDate>Tue, 15 Jul 2008 23:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119469#M25764</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-07-15T23:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119470#M25765</link>
      <description>Almost 20 years ago there used to be a product called VIDEO. It allowed to log all activity and also to replay it (as if recorded with a video). You could also take control of the terminal. Don't know what if it still exists.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 16 Jul 2008 06:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119470#M25765</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-07-16T06:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119471#M25766</link>
      <description>&lt;!--!*#--&gt;After you have the log file open read-shared using John Gillings' method:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/WRITE/SHARE mylog whatever.log&lt;BR /&gt;$ SET HOST 0/LOG=mylog&lt;BR /&gt;&lt;BR /&gt;Then you can use a DCL READ/WRITE loop to "type" out the file without first setting the file's EOF.&lt;BR /&gt;&lt;BR /&gt;Attached is SHARED_TYPE.COM, a DCL procedure I wrote for this purpose almost 20 years ago.&lt;BR /&gt;It will type out data from a read-shared file even if the EOF still shows as 0.</description>
      <pubDate>Wed, 16 Jul 2008 21:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119471#M25766</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-07-16T21:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119472#M25767</link>
      <description>re: Jess,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Then you can use a DCL READ/WRITE loop &lt;BR /&gt;&amp;gt;to "type" out the file without first &lt;BR /&gt;&amp;gt;setting the file's EOF.&lt;BR /&gt;&lt;BR /&gt;  That's the slow way! It's sufficient to OPEN/APPEND/SHARE then CLOSE the file.</description>
      <pubDate>Wed, 16 Jul 2008 22:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119472#M25767</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-07-16T22:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119473#M25768</link>
      <description>Ten seconds with a hot soldering iron, anyone?&lt;BR /&gt;&lt;BR /&gt;Tapping a serial line is trivial, and monitors are around if you're not inclined to solder your own T.</description>
      <pubDate>Wed, 16 Jul 2008 23:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119473#M25768</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-07-16T23:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119474#M25769</link>
      <description>I tried the OPEN/WRITE/SHARE and OPEN/APPEND/SHARE a PPF and using that as the log before I wrote the first message, and didn't see anything in the file until the SET HOST session ended, in other words, no better than a regular file.  I don't know why it didn't work for me.&lt;BR /&gt;&lt;BR /&gt;The customer doesn't care for software needing godlike powers to run, but they do like the pseudoterminal.  I didn't think of the RS232 loopback, even though I did that myself once long ago (to copy a file from another system)  They have an RS232 adapter with plenty of spare ports.  Now off to try to figure out which pins should go where.</description>
      <pubDate>Thu, 17 Jul 2008 00:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119474#M25769</guid>
      <dc:creator>Michael Moroney</dc:creator>
      <dc:date>2008-07-17T00:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119475#M25770</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;  Sorry, maybe I didn't explain clearly enough. You need to OPEN/APPEND/SHARE then CLOSE the file to bring the EOF up to date AT THE TIME OF THAT CLOSE. It will then stay there until you repeat the OPEN/APPEND/SHARE &amp;amp; CLOSE. There's no way to have it "automatically" update.&lt;BR /&gt;&lt;BR /&gt;  Here's a sample transcript - it's V7.3-2 so I'm not depending on anything recent. It's also a bit confusing since the process is looking at its own logfile.&lt;BR /&gt;&lt;BR /&gt;$ open/write/share mylog whatever.log&lt;BR /&gt;$ set host 0/log=mylog&lt;BR /&gt;&lt;BR /&gt;Username: jg&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;Unauthorized Access Prohibited&lt;BR /&gt;&lt;BR /&gt;    Last interactive login on Thursday, 17-JUL-2008 12:02:14.34&lt;BR /&gt;    Last non-interactive login on Thursday, 17-JUL-2008 05:00:28.90&lt;BR /&gt;&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      0/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 0/37 blocks.&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;$&lt;BR /&gt; ! Nothing&lt;BR /&gt;&lt;BR /&gt;$ open/append/share tmp whatever.log&lt;BR /&gt;$ close tmp&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      2/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 2/37 blocks.&lt;BR /&gt;$&lt;BR /&gt; ! EOF has moved&lt;BR /&gt;&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;&lt;BR /&gt;Username: omex_sys_asx&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;Unauthorized Access Prohibited&lt;BR /&gt;&lt;BR /&gt;    Last interactive login on Thursday, 17-JUL-2008 12:02:14.34&lt;BR /&gt;    Last non-interactive login on Thursday, 17-JUL-2008 05:00:28.90&lt;BR /&gt;&lt;BR /&gt;%DCL-S-SPAWNED, process ALIVE_202044A9 spawned&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;Subprocess ALIVE_202044A9 has completed&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      0/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 0/37 blocks.&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;$ open/append/share tmp whatever.log&lt;BR /&gt;$ close tmp&lt;BR /&gt;&lt;BR /&gt; ! File is now up to the point of the CLOSE&lt;BR /&gt;&lt;BR /&gt;$ logout&lt;BR /&gt;  JG logged out at 17-JUL-2008 12:07:50.11&lt;BR /&gt;%REM-S-END, control returned to node LOCAL:.JG000::&lt;BR /&gt;$&lt;BR /&gt;$ type mylog&lt;BR /&gt;$&lt;BR /&gt; ! Nothing visible via the PPF&lt;BR /&gt;$&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;&lt;BR /&gt;Username: omex_sys_asx&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;Unauthorized Access Prohibited&lt;BR /&gt;&lt;BR /&gt;    Last interactive login on Thursday, 17-JUL-2008 12:02:14.34&lt;BR /&gt;    Last non-interactive login on Thursday, 17-JUL-2008 05:00:28.90&lt;BR /&gt;&lt;BR /&gt;%DCL-S-SPAWNED, process ALIVE_202044A9 spawned&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;Subprocess ALIVE_202044A9 has completed&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      0/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 0/37 blocks.&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;$ open/append/share tmp whatever.log&lt;BR /&gt;$ close tmp&lt;BR /&gt;&lt;BR /&gt; ! But via the file name, the EOF is up to the last CLOSE&lt;BR /&gt;&lt;BR /&gt;$ OPEN/APPEND/SHARE tmp whatever.log&lt;BR /&gt;$ CLOSE tmp&lt;BR /&gt;&lt;BR /&gt; ! Reset EOF to current location&lt;BR /&gt;&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;Username: jg&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;Unauthorized Access Prohibited&lt;BR /&gt;&lt;BR /&gt;    Last interactive login on Thursday, 17-JUL-2008 12:02:14.34&lt;BR /&gt;    Last non-interactive login on Thursday, 17-JUL-2008 05:00:28.90&lt;BR /&gt;&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      0/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 0/37 blocks.&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;$ open/append/share tmp whatever.log&lt;BR /&gt;$ close tmp&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      2/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 2/37 blocks.&lt;BR /&gt;$ &lt;BR /&gt;$ type whatever.log&lt;BR /&gt;&lt;BR /&gt;Username: jg&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;Unauthorized Access Prohibited&lt;BR /&gt;&lt;BR /&gt;    Last interactive login on Thursday, 17-JUL-2008 12:02:14.34&lt;BR /&gt;    Last non-interactive login on Thursday, 17-JUL-2008 05:00:28.90&lt;BR /&gt;&lt;BR /&gt;?$ dir/size=all whatever.log?&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;WHATEVER.LOG;1                                      0/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 0/37 blocks.&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;$ open/append/share tmp whatever.log&lt;BR /&gt;$ close tmp&lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      2/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 2/37 blocks.&lt;BR /&gt;$ &lt;BR /&gt;$ type whatever.log&lt;BR /&gt;&lt;BR /&gt;Username: jg&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;Unauthorized Access Prohibited&lt;BR /&gt;&lt;BR /&gt;    Last interactive login on Thursday, 17-JUL-2008 12:02:14.34&lt;BR /&gt;    Last non-interactive login on Thursday, 17-JUL-2008 05:00:28.90&lt;BR /&gt; &lt;BR /&gt;$ dir/size=all whatever.log&lt;BR /&gt;&lt;BR /&gt;Directory DSA1:[OMEX_SYS_ASX]&lt;BR /&gt;&lt;BR /&gt;WHATEVER.LOG;1                                      0/37         17-JUL-2008 12:05:12.61&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 0/37 blocks.&lt;BR /&gt;$ type whatever.log&lt;BR /&gt;$ open/append/share tmp whatever.log&lt;BR /&gt;$ close tmp&lt;BR /&gt;$ logout&lt;BR /&gt;&lt;BR /&gt;  JG logged out at 17-JUL-2008 12:07:50.11&lt;BR /&gt;&lt;BR /&gt;$ CLOSE mylog</description>
      <pubDate>Thu, 17 Jul 2008 01:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119475#M25770</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-07-17T01:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119476#M25771</link>
      <description>No, I didn't try that.</description>
      <pubDate>Thu, 17 Jul 2008 01:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119476#M25771</guid>
      <dc:creator>Michael Moroney</dc:creator>
      <dc:date>2008-07-17T01:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119477#M25772</link>
      <description>Nice trick with the shared PPF john!&lt;BR /&gt;&lt;BR /&gt;Here is an other direction for a work-around.&lt;BR /&gt;SET HOST /LOG will happily write into a mailbox... which a program, or 'type', can read. See attachment.&lt;BR /&gt;&lt;BR /&gt;I thought It would be enough for a tool to create a mailbox, read and put into a file allowing sharing. However... it seems you still need a home-grown tool, or the OPEN-for-append + close John suggests to get the EOF. Tools like SEARCH and TYPE and CONVERT all use UPI sharing and do not trigger a flush. I guess I'm not smart enough tonite to come up with a standard tool to do this, other than a simple DLC loop as below.&lt;BR /&gt;&lt;BR /&gt;Try it....&lt;BR /&gt;&lt;BR /&gt;$cc mbx&lt;BR /&gt;$link mbx&lt;BR /&gt;$spawn/nowait run mbx&lt;BR /&gt;$set host /log=MBX&lt;BR /&gt;blah blah&lt;BR /&gt;&lt;BR /&gt;And in an other session:&lt;BR /&gt;$open/read/share=write x 'p1&lt;BR /&gt;$loop:&lt;BR /&gt;$read/end=done x record&lt;BR /&gt;$write sys$output record&lt;BR /&gt;$goto loop&lt;BR /&gt;$done:&lt;BR /&gt;$close x&lt;BR /&gt;&lt;BR /&gt;Or &lt;BR /&gt;$ ope/read/appe/share=write x sethost.lis&lt;BR /&gt;$ typ sethost.lis&lt;BR /&gt;$ close x&lt;BR /&gt;$ typ sethost.lis&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 02:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119477#M25772</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-17T02:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: SET HOST /LOG logfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119478#M25773</link>
      <description>We're going to use a logging program which uses a pseudoterminal to capture the output.&lt;BR /&gt;&lt;BR /&gt;Thanks for all the interesting suggestions.</description>
      <pubDate>Fri, 18 Jul 2008 18:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-host-log-logfile/m-p/5119478#M25773</guid>
      <dc:creator>Michael Moroney</dc:creator>
      <dc:date>2008-07-18T18:56:57Z</dc:date>
    </item>
  </channel>
</rss>

