Newsgroups: comp.parallel.pvm
From: Jonathan King <nobody@nowhere.else>
Subject: Re: UNIX file system call in slave
Organization: Hewlett-Packard Co.
Date: Fri, 30 Aug 1996 08:21:55 -0700
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <32270713.5A92@nowhere.else>

mr844345 wrote:
> 
> I wrote a master-slave structure program in PVM environment and the
> slave process contains some UNIX file system calls such as open, execl.
> When a slave which is spawned by the master reaches the system calls and
> attempts to open a file, it returns an error message: No such file or
> directory. The file definitly exists in the same directory as master and
> slave but the slave can't find it. What's wrong with it? Please help!

Try explicitly setting your directory with a chdir( ) system call.  My
guess is that your slave is actually running from the
~/pvm3/bin/$(ARCH)/ directory, and the file you're trying to open is in
your build directory.

Jon

-- 
#######################################################
# Jonathan B. King        kingjo@research.cs.orst.edu #
# M.S. Student in C.S.    jking@cv.hp.com             #
#                                                     # 
# Replying to this address will not work.  Please use #
#   one of the above email addresses to contact me.   #
#                                                     # 
#              My opinions are my own.                #
#######################################################

