Newsgroups: comp.parallel.pvm
From: rwhaley@demidoff.cs.utk.edu (R Clint Whaley)
Subject: Re: Write to screen
Organization: Computer Science Dept, University of Tennessee, Knoxville
Date: 28 Sep 1994 01:27:15 GMT
Message-ID: <36agpjINNher@CS.UTK.EDU>

In article <369hkeINN4ss@iraun1.ira.uka.de>, kamstrup@i60s29.ira.uka.de (Gjertrud Kamstrup DA Laengle) writes:
|> 
|> -- 
|> 
|> 
|> Organization:	University of Karlsruhe, Germany
|> Department:	Computer Science
|> Institute:		Real-Time Computer Systems and Robotics
|> Address:		P.O.Box 6980, D-76128 Karlsruhe
|> Phone:		++49 721 608-4090
|> Fax:		++49 721 606740
|> 
|> 
|> Hello,
|> 
|> I have got a root process which 'spawns' 6 other processes, and I would like some
|> of these processes to write to the screen. I have tried 'printf' and 'fputs(...,
|> stdout). In the first case I do not see anything on the screen, but I can find it
|> in the file /tmp/pvml.****
|> 
|> Can anyone help me ??
|> 
|> Gjertrud W. Kamstrup

As long as you are using pvm3.3 or later, you are in business.  Just
have your spawning process call:
   pvm_catchout(stdout);
   pvm_catchout(stderr);
before spawning.  This directs all processes' output to your screen instead
of the /tmp file.  This routine is not in the quick reference guide: it is
documented in the user's guide.

-- Clint

