Newsgroups: comp.parallel.pvm
From: Bo-sung Lee <bslee@pvmcube4.snu.ac.kr>
Reply-To: bslee@pvmcube4.snu.ac.kr
Subject: Re: XPVM spawning problem
Organization: Dept. of Aerospace Eng. Seoul National Univ.
Date: Wed, 20 May 1998 17:45:07 +0900
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <35629813.5487@pvmcube4.snu.ac.kr>

Stephen So wrote:
> 
> Hi everyone,
> 
> I've referred this to Jim Kohl and he's finding a solution but I thought
> I'd multicast it to everybody and hopefully get a solution.
> 
> I'm having trouble spawning PVM programs that accepts input from stdin
> in XPVM. I have an input file called "data" and I use redirection at the
> command line. ie. vector_master < data.
> 
> Now the tasks spawn okay but they just sit there and do nothing. No
> messages are passed. This applies to spawning at the PVM console as
> well. Now, it actually works when run from the unix prompt (with pvmd
> running of course). So Jim and I suspect it might be a path problem. He
> suggested earlier that I use an absolute path name for the input file
> but that did not fix things. And also, when I include the data inside
> the source code (ie. no data file), the program works in XPVM. So its
> the redirection of the data file that might be the problem. 

I didn't spawn programs like you. I will test my program like you.

> Also, reading from a file from the program (using fopen() in C) has the same
> problem.
> 

Reading from a file from the program has no problem if you use an
absolute
file path for input file. But, if you don't specify absolute file path,
pvm program find input file in your home directory if you execute your
program in pvm console or xpvm. But, you execute program in command
mode,
then the program finds input file in the current directory.

> Any ideas? Thanks.
> 
> Steve.

