Newsgroups: comp.parallel.pvm
From: vinther@webern.daimi.aau.dk (Christian Vinther)
Reply-To: vinther@daimi.aau.dk
Subject: Re: scanf() just falls through
Organization: DAIMI, Computer Science Dept. of Aarhus Univ.
Date: 07 Dec 1995 11:15:39 GMT
Message-ID: <VINTHER.95Dec7121539@webern.daimi.aau.dk>

Hi Chet

>Also, is there a way of passing arguments to the pvm tasks like command-line
>arguments on Unix ??

Look at the arguments to pvm_spawn(). Cut from the pvm-manual:

NAME

pvm_spawn - Starts new PVM processes.

SYNOPSIS

C int numt = pvm_spawn( char *task, char **argv, int flag, char *where,
			int ntask, int *tids )

Fortran call pvmfspawn( task, flag, where, ntask, tids, numt )

PARAMETERS

argv Pointer to an array of arguments to the executable (if supported
on the target machine), not including the executable name, with the
end of the array specified by NULL. argv[0] of the spawned task is set
to the executable path relative to the PVM working directory (or
absolute if an absolute filename was specified). If the executable
needs no arguments, then the second argument to pvm_spawn is NULL.

Send me an email if you want an example program.

-Christian

