Newsgroups: comp.parallel.pvm
From: Felipe Knop <knop>
Subject: Re: Spawned task output (stdout, stderr) doesn't show up in log file.
Organization: Department of Computer Sciences, Purdue University
Date: 5 Nov 1995 22:14:02 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <47jcva$hv@ector.cs.purdue.edu>

Hi,

I'm new to this group. I got the post below but not the original post.

I'm having a problem trying to redirect the output of the spawned tasks.
I have tried using pvm_catchout() and pvm_setopt() without success.
In both cases the printfs issued by the spawned processes disappeared,
not even going to the /tmp/pvml files.

When using pvm_catchout(stdout), I get

[t40006] BEGIN
[t40005] BEGIN
[t40004] BEGIN

on the standard output of the initial process, but nothing more from the
spawned processes.

Any ideas?

   Thanks!

      Felipe
---------------------

wrankin@duke.edu (William T. Rankin) wrote:
>Umm, Ken, the following questions may sound stupid, but I got to ask:
>
>a) are you running PVM on multiple machines?  if so, then realize that
>   stderr output is routed to the /tmp/pvml.[UID] file on the machine 
>   where the process is running (not necessarily the same machine you
>   are on).  the /tmp directory on one system is usually local to that
>   one workstation, and not shared.
>
>b) if you are "spawn"-ing the master process from the PVM prompt, then
>   the master process may be spawned on a different processor than where
>   you are running PVM on.  in that case, (a) above also applies.
>
For my case, I tried using pvm_cacthout, so output is not going to
pvml.[UID]

>c) fprintf(...) output is buffered and may not immediately be written out 
>   to the file.  issuing a flush(...) command will cause the output 
>   buffers to be written out.

I tried fflush() with no apparent effect.

>
>d) [...]

>Hope this helps,
>
>-bill

=============================================================================
Felipe Knop                        E-mail: knop@cs.purdue.edu
Department of Computer Sciences    Phone : (317) 494-0361
Purdue University                  Fax:    (317) 494-0739 (CS dept)
West Lafayette, IN 47907-1398 USA  WWW: http://www.cs.purdue.edu/people/knop
=============================================================================


