<?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: Broadcast or $BRDCST in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603816#M98276</link>
    <description>Your question is somewhat ambigous:&lt;BR /&gt;&lt;BR /&gt;Broadcast to Your process/terminal can be catched by a program establishing an attention-mailbox-AST on the terminal (sys$input) of the process.&lt;BR /&gt;An example of how to do it is in&lt;BR /&gt; &lt;A href="http://www.mpp.mpg.de/~huber/vmssig/src/MAR/GRAB_BROADCAST_MESSAGES.MAR" target="_blank"&gt;http://www.mpp.mpg.de/~huber/vmssig/src/MAR/GRAB_BROADCAST_MESSAGES.MAR&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can take this program, and enhance it to log the trapped messages to a file.&lt;BR /&gt;&lt;BR /&gt;Or take another example written in C, which traps broadcasts and displays them in graphic  display window:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mpp.mpg.de/~huber/vmssig/src/C/BTRAP.C" target="_blank"&gt;http://www.mpp.mpg.de/~huber/vmssig/src/C/BTRAP.C&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the other hand "REPLY" messages ? OPCOM messages are logged in the OPERATOR log file if enabled by REPLY/LOG.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Mar 2010 11:25:04 GMT</pubDate>
    <dc:creator>Joseph Huber_1</dc:creator>
    <dc:date>2010-03-19T11:25:04Z</dc:date>
    <item>
      <title>Broadcast or $BRDCST</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603814#M98274</link>
      <description>Can i log all the broadcast(basiclly REPLY) messages into a file.</description>
      <pubDate>Fri, 19 Mar 2010 08:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603814#M98274</guid>
      <dc:creator>sathya prabu</dc:creator>
      <dc:date>2010-03-19T08:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Broadcast or $BRDCST</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603815#M98275</link>
      <description>Disabling the reply message to display on the terminal using SET BROADCAST=NOGENERAL, when switched on back SET BROADCAST=ALL also is not displaying any messages arrived during the session. Does anybody have any idea on how to have a track on the REPLY messages?</description>
      <pubDate>Fri, 19 Mar 2010 11:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603815#M98275</guid>
      <dc:creator>sathya prabu</dc:creator>
      <dc:date>2010-03-19T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Broadcast or $BRDCST</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603816#M98276</link>
      <description>Your question is somewhat ambigous:&lt;BR /&gt;&lt;BR /&gt;Broadcast to Your process/terminal can be catched by a program establishing an attention-mailbox-AST on the terminal (sys$input) of the process.&lt;BR /&gt;An example of how to do it is in&lt;BR /&gt; &lt;A href="http://www.mpp.mpg.de/~huber/vmssig/src/MAR/GRAB_BROADCAST_MESSAGES.MAR" target="_blank"&gt;http://www.mpp.mpg.de/~huber/vmssig/src/MAR/GRAB_BROADCAST_MESSAGES.MAR&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can take this program, and enhance it to log the trapped messages to a file.&lt;BR /&gt;&lt;BR /&gt;Or take another example written in C, which traps broadcasts and displays them in graphic  display window:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mpp.mpg.de/~huber/vmssig/src/C/BTRAP.C" target="_blank"&gt;http://www.mpp.mpg.de/~huber/vmssig/src/C/BTRAP.C&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the other hand "REPLY" messages ? OPCOM messages are logged in the OPERATOR log file if enabled by REPLY/LOG.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:25:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603816#M98276</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-03-19T11:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Broadcast or $BRDCST</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603817#M98277</link>
      <description>sathya,&lt;BR /&gt;&lt;BR /&gt;  In theory you could put a software hook in the system service dispatch vector for the $BRDCST service and log everything that went past for all users and all destinations. A non-trivial, privileged, and fairly dangerous exercise. If you need to ask this question, then it's probably not something you should attempt straight away.&lt;BR /&gt;&lt;BR /&gt;  Remember that $BRDCST (REPLY) messages can be sent FROM anywhere, and TO a variety of destinations. Think about which messages you're interested in, and if you want to catch them on the sending side or the receiving side. There are numerous tricky cases. For example, what if someone sends a REPLY/USER=someone but the user isn't logged in? The message never gets delivered anywhere. What if someone sends a message to a specific terminal with no one logged in? The message is delivered, but there's no attached process to catch it with something like Joseph's example program.&lt;BR /&gt;&lt;BR /&gt;  If you have control over the sending of the messages you're interested in, I'd be taking the easy solution of logging at the source. Abstract the operation, changing it in your sending application from "$BRDCST" to "SendMessage". Implement SendMessage as:&lt;BR /&gt;&lt;BR /&gt;LogMessage(msg)&lt;BR /&gt;$BRDCST(msg)&lt;BR /&gt;&lt;BR /&gt;(where LogMessage writes the message to your log file).</description>
      <pubDate>Sun, 21 Mar 2010 19:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603817#M98277</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-03-21T19:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Broadcast or $BRDCST</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603818#M98278</link>
      <description>Thanks a lot John and Joseph! that definitely helped me.</description>
      <pubDate>Wed, 07 Apr 2010 07:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/broadcast-or-brdcst/m-p/4603818#M98278</guid>
      <dc:creator>sathya prabu</dc:creator>
      <dc:date>2010-04-07T07:38:35Z</dc:date>
    </item>
  </channel>
</rss>

