<?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: different output when running from command line and from &amp;quot;inside&amp;quot; descrip.mms file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724794#M40887</link>
    <description>How is this:&lt;BR /&gt;&lt;BR /&gt;stdCOut()&lt;BR /&gt;&lt;BR /&gt;...defined?&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
    <pubDate>Mon, 13 Dec 2010 17:43:31 GMT</pubDate>
    <dc:creator>GuentherF</dc:creator>
    <dc:date>2010-12-13T17:43:31Z</dc:date>
    <item>
      <title>different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724784#M40877</link>
      <description>Can someone explain to me why the output from exactly the same executable (compiled from C++ sources) gives a complete different lay-out when runned from the command line and when invoked by MMS from its descrip.mms file (see example below)&lt;BR /&gt;The one from the command line I prefer.&lt;BR /&gt;&lt;BR /&gt;                 Jouk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;$ run cppunittestmain.exe&lt;BR /&gt;Running&lt;BR /&gt;OK (0)&lt;BR /&gt;&lt;BR /&gt;$ mms&lt;BR /&gt;run cppunittestmain.exe&lt;BR /&gt;R&lt;BR /&gt;u&lt;BR /&gt;n&lt;BR /&gt;n&lt;BR /&gt;i&lt;BR /&gt;n&lt;BR /&gt;g&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;O&lt;BR /&gt;K&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724784#M40877</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-10T11:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724785#M40878</link>
      <description>That's typical of specific character-I/O operations in the C and C++ code, and can arise from down-revision software and particularly with some old problems within the C I/O redirection; that pattern was a fairly common misbehavior of C I/O some years ago, as well.  There was an old bug with record handling with stdout an eon or two ago.&lt;BR /&gt;&lt;BR /&gt;Check the versions of and patch levels of VMS, C++ and DECset MMS here.&lt;BR /&gt;&lt;BR /&gt;Check the C++ code; what output calls are in use here.&lt;BR /&gt;&lt;BR /&gt;And look for whatever I/O redirection is being contributed by MMS.&lt;BR /&gt;&lt;BR /&gt;Also try mmk or gmake as a potential workaround.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, VMS has never gotten its I/O redirection working anywhere near as elegantly as is the norm on Unix.</description>
      <pubDate>Fri, 10 Dec 2010 14:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724785#M40878</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-12-10T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724786#M40879</link>
      <description>Thanks Hoff,&lt;BR /&gt;&lt;BR /&gt;Both C++ and MMS are the latest versions for OpenVMS8.4 Alpha&lt;BR /&gt;&lt;BR /&gt;   C++ : HP C++ V7.3-009&lt;BR /&gt;   MMS : V3.9-0&lt;BR /&gt;&lt;BR /&gt;MMK gives the same results as MMS.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2010 14:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724786#M40879</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-10T14:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724787#M40880</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] (compiled from [invisible] C++&lt;BR /&gt;&amp;gt; sources) [...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] MMS from its [invisible] descrip.mms&lt;BR /&gt;&amp;gt; file [...]&lt;BR /&gt;&lt;BR /&gt;With my weak psychic powers, it's hard to be&lt;BR /&gt;sure of exactly what your secret code is&lt;BR /&gt;doing, but my guess would be that you have&lt;BR /&gt;something like:&lt;BR /&gt;&lt;BR /&gt;      fwrite( cp, 1, n, file)&lt;BR /&gt;&lt;BR /&gt;instead of:&lt;BR /&gt;&lt;BR /&gt;      fwrite( cp, n, 1, file)&lt;BR /&gt;&lt;BR /&gt;somewhere.  The details of how many records&lt;BR /&gt;fwrite() creates when/why are all explained&lt;BR /&gt;somewhere in the C RTL documentation.  VMS is&lt;BR /&gt;not UNIX.&lt;BR /&gt;&lt;BR /&gt;If you want an answer which involves more&lt;BR /&gt;than pure guesswork, then you might consider&lt;BR /&gt;providing a complete (small) test case&lt;BR /&gt;instead of only a vague description.&lt;BR /&gt;&lt;BR /&gt;I've seen this sort of behavior when program&lt;BR /&gt;output is directed to a log file instead of&lt;BR /&gt;to a terminal, as from a batch job.  I can't&lt;BR /&gt;admit that MMS made any difference, but then&lt;BR /&gt;we non-psychics have no real idea of how you&lt;BR /&gt;got the results which you claim to have seen,&lt;BR /&gt;so it's hard to be really confident of&lt;BR /&gt;anything here.</description>
      <pubDate>Fri, 10 Dec 2010 14:50:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724787#M40880</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-12-10T14:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724788#M40881</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;The code is not so secret. I just tried to port the CPPUNIT package of which this program is a "test" program. (details on what I did are on my web page &lt;A href="http://nchrem.tnw.tudelft.nl/openvms/software2.html" target="_blank"&gt;http://nchrem.tnw.tudelft.nl/openvms/software2.html&lt;/A&gt;&lt;BR /&gt;(next week I'll post an improved version there)&lt;BR /&gt;&lt;BR /&gt;However there are no fwrites involved, but it looks like something like:&lt;BR /&gt;&lt;BR /&gt;CPPUNIT_NS::stdCOut() &amp;lt;&amp;lt; "Running "  &amp;lt;&amp;lt;  testPath;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724788#M40881</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-10T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724789#M40882</link>
      <description>Smells of bug.  Probably in the language library, though a rule-out of mistakes within the application C++ code is in order.</description>
      <pubDate>Fri, 10 Dec 2010 15:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724789#M40882</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-12-10T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724790#M40883</link>
      <description>Just out of interest, what does it do if you&lt;BR /&gt;&lt;BR /&gt;$ spawn cppunittestmain.exe&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2010 16:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724790#M40883</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2010-12-10T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724791#M40884</link>
      <description>The most likely explanation has to do with differences in the record format and/or carriage return characteristics of the output device in each case.  When running from the command line, C++ and its supporting run-time have more control over how SYS$OUTPUT gets opened.  When running under MMS, MMS (or possibly DCL) has control.&lt;BR /&gt;&lt;BR /&gt;Under MMS the child process running the C++ program is probably communicating to the parent through a mailbox, and a mailbox is a record-oriented device.  It may be that the parent process running MMS has inherited DCL characteristics for SYS$OUTPUT.  Either or both of these things could explain the behavior you're seeing.&lt;BR /&gt;&lt;BR /&gt;In any case, the goal would be to make the C++ program see a stream-oriented output, perhaps by giving it the ability to create its own output file.  Then you're MMS snippet would look something like:&lt;BR /&gt;&lt;BR /&gt;  mcr sys$disk:[]cppunittestsmain --output myfile.tmp&lt;BR /&gt;  type myfile.tmp&lt;BR /&gt;  delete/nolog myfile.tmp;</description>
      <pubDate>Fri, 10 Dec 2010 18:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724791#M40884</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2010-12-10T18:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724792#M40885</link>
      <description>spawning the run command gives exactly the same problem.</description>
      <pubDate>Mon, 13 Dec 2010 07:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724792#M40885</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-13T07:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724793#M40886</link>
      <description>assigning sys$output to a file gives a file with one character per line when invoked by MMS&lt;BR /&gt;and when runned from the command line.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2010 07:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724793#M40886</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-13T07:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: different output when running from command line and from "inside" descrip.mms file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724794#M40887</link>
      <description>How is this:&lt;BR /&gt;&lt;BR /&gt;stdCOut()&lt;BR /&gt;&lt;BR /&gt;...defined?&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Mon, 13 Dec 2010 17:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/different-output-when-running-from-command-line-and-from-quot/m-p/4724794#M40887</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2010-12-13T17:43:31Z</dc:date>
    </item>
  </channel>
</rss>

