[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::netview

Title:TME 10 NetView and related productscts
Notice:Bugs-12; Kits-9; ECOs-20
Moderator:TUXEDO::MINTZLL
Created:Tue Aug 24 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2257
Total number of notes:7838

2218.0. "stdout to xnmappmon" by BIGUN::nessus.cao.dec.com::Mayne (Churchill's black dog) Wed Feb 26 1997 00:42

I have an application that is called from the map and produces output on stdout. 
I want to see this output.

If I use xnmappmon to run the application, OVwInit returns an error.

I can't pipe the output from my application into xnmappmon, because xnmappmon 
can't accept input from stdin. (Why not?)

Wrapping my application in a shell script to capture the output and use 
xnmappmon -cmd cat is a possible workaround, but when I try that xnmappmon 
runs, but the window never appears on the screen, even though I can see the 
process with ps. (Putting something like /usr/bin/X11/xlogo on either side 
xnmappmon makes the X logo display, but xnmappmon refuses to.)

How can I do the equivalent of "application | xnmappmon"?

PJDM

T.RTitleUserPersonal
Name
DateLines
2218.1ZOTTO::ENYAYoshiharu Enya, Tokyo JapanWed Feb 26 1997 23:0310
> How can I do the equivalent of "application | xnmappmon"?

If your application dose really just output characters to stdout(or stderr),
Why do you simply run like below?

% xnmappmon -cmd application

--
Yoshiharu Enya
2218.2BIGUN::nessus.cao.dec.com::MayneChurchill's black dogWed Feb 26 1997 23:2123
Because, as I said in .0:

> If I use xnmappmon to run the application, OVwInit returns an error.

In particular, I get an "OVW not running" error.

Another problem with xnappmon. (This is on PNV 4.1C, DU 4.0A)

If I have a script as follows:

        #!/bin/sh
        /usr/OV/bin/xnmappmon -cmd /usr/bin/ls -l /
        /usr/OV/bin/xnmappmon -cmd /usr/bin/ls -l /var

and I create a registration file for this script and call it from a menu, the 
first invocation of xnmappmon displays correctly, but the second one doesn't. 
The process starts, but it just sits there and doesn't do anything.

The combination of not being able to pipe to xnmappmon, and this problem, makes 
my application rather awkward to use. Any fixes/workarounds?

PJDM