<?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: Send ConsoleMessage using Perl script. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969062#M95251</link>
    <description>open my $console, "&amp;gt;", "/dev/console" or die "Cannot write messages to console: $!";&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;print $console "Message\n";&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;print $console "Another message\n";&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;close $console;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ why is M$Win always so overly complicated? ]</description>
    <pubDate>Mon, 26 Mar 2007 10:29:31 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2007-03-26T10:29:31Z</dc:date>
    <item>
      <title>Send ConsoleMessage using Perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969060#M95249</link>
      <description>Does anyone have the correct syntax for sending console message using PERL? I normally script in VB but I need to send a message from a PERL script on a UNIX machine I monitor.&lt;BR /&gt;&lt;BR /&gt;I’m trying to send a ConsoleMessage using in a PERL script without using OPCMSG.EXE. In VB script I use the code snip below. Is something similar available in PERL?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VB Script Syntax:&lt;BR /&gt;&lt;BR /&gt;Dim ConsoleMessage&lt;BR /&gt;&lt;BR /&gt;Set ConsoleMessage = CreateObject("OVOAutomation.Opcmsg")&lt;BR /&gt;'Populate values and send message to sub agent&lt;BR /&gt;&lt;BR /&gt;ConsoleMessage.MessageText = "Message Text"&lt;BR /&gt;ConsoleMessage.Object = "Object"&lt;BR /&gt;ConsoleMessage.Application = "TestApp"&lt;BR /&gt;ConsoleMessage.Severity = "Normal"&lt;BR /&gt;ConsoleMessage.Send&lt;BR /&gt;&lt;BR /&gt;Perl Syntax:&lt;BR /&gt;$ConsoleMessage-&amp;gt;MsgText("msgtext"); &lt;BR /&gt;$ConsoleMessage-&amp;gt;Object("object"); &lt;BR /&gt;$ConsoleMessage-&amp;gt;Application("application"); &lt;BR /&gt;$ConsoleMessage-&amp;gt;Severity("severity"); &lt;BR /&gt;$ConsoleMessage-&amp;gt;Send();&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Mar 2007 10:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969060#M95249</guid>
      <dc:creator>Mike Murphy_7</dc:creator>
      <dc:date>2007-03-26T10:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send ConsoleMessage using Perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969061#M95250</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;All you need to do is see that the output gets to /dev/console&lt;BR /&gt;&lt;BR /&gt;system ( echo "message" &amp;gt; /dev/console);&lt;BR /&gt;&lt;BR /&gt;Thats the simplest, but quite an effective way to get messages to the console.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Mar 2007 10:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969061#M95250</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-26T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Send ConsoleMessage using Perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969062#M95251</link>
      <description>open my $console, "&amp;gt;", "/dev/console" or die "Cannot write messages to console: $!";&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;print $console "Message\n";&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;print $console "Another message\n";&lt;BR /&gt;&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;close $console;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ why is M$Win always so overly complicated? ]</description>
      <pubDate>Mon, 26 Mar 2007 10:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/send-consolemessage-using-perl-script/m-p/3969062#M95251</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2007-03-26T10:29:31Z</dc:date>
    </item>
  </channel>
</rss>

