Newsgroups: comp.parallel.pvm
From: Martin Bernreuther <kea9@stat15.bauingenieure.uni-stuttgart.de>
Subject: Re: How to tell what machine process is running on??
Organization: Universitt Stuttgart
Date: Tue, 21 May 1996 14:18:38 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <31A1B49E.69B9@stat15.bauingenieure.uni-stuttgart.de>

Harry Millwater wrote:
> 
> Hello PVM gurus.  I am a novice pvm programmer.  What I want to know is
> after I spawn some tasks and have their tids, how can I tell what
> machine a task is running on?  I need this information because I wantIf you need the information in your slave process, you don't even need
pvm. With "gethostname" you'll get the machine... Just in case the slaves
get the same data independent of the machine they're running on.
> to do different things with directories, files, etc. depending on which
> machine the job is on.  I see there is a pvmftidtohost command that[...]

The other possibility is already mentioned by Jonathan King...

Bye
	Martin

-------------------------------------------------------------------------------
Martin Bernreuther                                    Civil Engineering student
M.Bernreuther@studbox.uni-stuttgart.de         University of Stuttgart, Germany
-------------------------------------------------------------------------------

