From: tom@diophant.uni-paderborn.de (Torsten Metzner)
Newsgroups: comp.parallel.pvm
Subject: Re: PVM example progs
Date: 24 Nov 1998 15:03:22 GMT
Organization: uni-paderborn.de
Message-Id: <73ehrq$g$1@news.uni-paderborn.de>
References: <72slsh$q65@elaine4.Stanford.EDU>
    <3652B4B5.2E30@pvmcube4.snu.ac.kr> <365420e4.0@news.dmu.ac.uk>


Hugh Sasse (hgs@dmu.ac.uk) wrote:
: Bo-sung Lee (bslee@pvmcube4.snu.ac.kr) wrote:
: : Try like below
: 
: : myth2:~> pvm
: : pvm>quit
: : myth2:~>fmaster1
: 
: : If you want to start command shell, pvm daemon should be executed before
: : you start pvm programs.
: 
: Is there a way to do this startup using C calls?  When a user invokes a
: program they should not necessarily need to know it uses PVM.  I know
: I could use system to do most of the above, or do it exactly with expect,
: but I suspect the calls are there but cannot find them in the docs.

Yes there is a way. Have a look at the following functions:
pvm_start_pvmd     // for starting the pvmd master daemon
pvm_addhosts       // for starting the slaves
pvm_spawn          // for spawning the processes

Hope this helps,

 Torsten.

