- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: different output when running from command lin...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 03:41 AM
тАО12-10-2010 03:41 AM
The one from the command line I prefer.
Jouk
example:
$ run cppunittestmain.exe
Running
OK (0)
$ mms
run cppunittestmain.exe
R
u
n
n
i
n
g
O
K
(
0
)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 06:37 AM
тАО12-10-2010 06:37 AM
SolutionCheck the versions of and patch levels of VMS, C++ and DECset MMS here.
Check the C++ code; what output calls are in use here.
And look for whatever I/O redirection is being contributed by MMS.
Also try mmk or gmake as a potential workaround.
Unfortunately, VMS has never gotten its I/O redirection working anywhere near as elegantly as is the norm on Unix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 06:48 AM
тАО12-10-2010 06:48 AM
Re: different output when running from command line and from "inside" descrip.mms file
Both C++ and MMS are the latest versions for OpenVMS8.4 Alpha
C++ : HP C++ V7.3-009
MMS : V3.9-0
MMK gives the same results as MMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 06:50 AM
тАО12-10-2010 06:50 AM
Re: different output when running from command line and from "inside" descrip.mms file
> sources) [...]
> [...] MMS from its [invisible] descrip.mms
> file [...]
With my weak psychic powers, it's hard to be
sure of exactly what your secret code is
doing, but my guess would be that you have
something like:
fwrite( cp, 1, n, file)
instead of:
fwrite( cp, n, 1, file)
somewhere. The details of how many records
fwrite() creates when/why are all explained
somewhere in the C RTL documentation. VMS is
not UNIX.
If you want an answer which involves more
than pure guesswork, then you might consider
providing a complete (small) test case
instead of only a vague description.
I've seen this sort of behavior when program
output is directed to a log file instead of
to a terminal, as from a batch job. I can't
admit that MMS made any difference, but then
we non-psychics have no real idea of how you
got the results which you claim to have seen,
so it's hard to be really confident of
anything here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 07:03 AM
тАО12-10-2010 07:03 AM
Re: different output when running from command line and from "inside" descrip.mms file
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 http://nchrem.tnw.tudelft.nl/openvms/software2.html
(next week I'll post an improved version there)
However there are no fwrites involved, but it looks like something like:
CPPUNIT_NS::stdCOut() << "Running " << testPath;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 07:33 AM
тАО12-10-2010 07:33 AM
Re: different output when running from command line and from "inside" descrip.mms file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 08:40 AM
тАО12-10-2010 08:40 AM
Re: different output when running from command line and from "inside" descrip.mms file
$ spawn cppunittestmain.exe
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 10:20 AM
тАО12-10-2010 10:20 AM
Re: different output when running from command line and from "inside" descrip.mms file
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.
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:
mcr sys$disk:[]cppunittestsmain --output myfile.tmp
type myfile.tmp
delete/nolog myfile.tmp;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2010 11:21 PM
тАО12-12-2010 11:21 PM
Re: different output when running from command line and from "inside" descrip.mms file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2010 11:29 PM
тАО12-12-2010 11:29 PM
Re: different output when running from command line and from "inside" descrip.mms file
and when runned from the command line.