Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!bnr.co.uk!corpgate!news.utdallas.edu!chpc.utexas.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!koriel!lll-winken.llnl.gov!taurus.cs.nps.navy.mil!taygeta.oc.nps.navy.mil!skip
From: skip@taygeta.oc.nps.navy.mil (Skip Carter)
Subject: Re: Slaves creating files.
Message-ID: <Cnyn7w.4GD@taurus.cs.nps.navy.mil>
Sender: news@taurus.cs.nps.navy.mil
Organization: Oceanography Dept, Naval Postgraduate School
References: <8APR94.09021328@cc4.crl.aecl.ca>
Date: Fri, 8 Apr 1994 21:47:55 GMT
Expires: Fri, 8 Apr 1994 07:00:00 GMT
Lines: 34


	If a slave creates a file, it will do so in its current working
	directory, which will probably be the users home directory (unless
	they have special things in their PVM environment).

	I usually open file with the PVM tid as part of the file name,
	e.g.

int main()
{
     char logfile[48];
     FILE *slog;


     /* enroll in pvm, and determine who is master */
     mytid = pvm_mytid();
     master = pvm_parent();

     /* open up a log file, whose name is based upon mytid */
     sprintf(logfile,"%x.log",mytid);

     slog = fopen( logfile, "w" );


	.....


}

-- 
 Everett (Skip) Carter        Phone:  408-656-3318 FAX: 408-656-2712
 Naval Postgraduate School    INTERNET: skip@taygeta.oc.nps.navy.mil
 Dept. of Oceanography, Code OC/CR  UUCP:     ...!uunet!taygeta!skip
 Monterey, CA. 93943          TELEMAIL: s.carter/omnet

