Newsgroups: comp.parallel.pvm
From: Roberto Hortal <rhortal@mozart.abo.fi>
Subject: Re: Messages from Slaves?
Organization: Abo Akademi University
Date: Fri, 2 Feb 1996 11:35:53 +0200
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.SOL.3.91.960202113317.5412A-100000@mozart.abo.fi>

On 31 Jan 1996 ortigosa@filabres.seas.ucla.edu wrote:

> I can`t printf messages from the slaves to the screen, 
> in a master slave schema.
> I use PVM 3.3.7 in sun workstations. Is it possible to do this?
> Thanks in advance.
> Please send me yours emails to:
> pilar@iron.ualm.es or
> ortigosa@filabres.ualm.es
> 
Just call pvm_catchout() BEFORE ypou create the slaves. With this, the 
output is redirected to the mastr in an automatic way, by means of 
messages you don't need to handle (you don't even need to know they exist).
This way the master outputs to its standard output the one created by the 
slaves.

This is inheritable, so if the slaves spawn more slaves, the scheme still 
works.

Hope it helps. Rob.

    _I_
  _I)___I_      
  )_)__)__)     		MADE     IN     SPAIN
 \)_)__)__) \   
 _\I I )I\)_--  
 |________/     
+-+-+-+-+-+-+-+   De la mar el mero, y de la tierra el CONEJO.
			

	Roberto.                rhortal@abo.fi
				rhortal@ceratonia.eui.upv.es
				http://www.abo.fi/~rhortal

