Newsgroups: comp.parallel.pvm
From: Donald Krieger <don@neuronet.pitt.edu>
Subject: Re: Removing /tmp/pvm* files..
Organization: University of Pittsburgh
Date: 24 Jan 1995 14:24:42 GMT
Message-ID: <3g32ja$a8a@usenet.srv.cis.pitt.edu>

subraman@cs.iastate.edu (Krishnan Subramaniam) wrote:
>
> I have a shell script that will do the same thing - its quick
> and DIRTY, but works quite well.
> 
> 
> #!/bin/csh
> echo "executing $* on each host"
> foreach host ( `cat $PVM_ROOT/pvm.hosts` )
> 	echo "Host name: $host"
> 		remsh $host /tmp/pvm*  
> 	endif
> end

We used something like this for a while but have switched to
the form suggested in the man page for two reasons:
	(1) An easy thing - the wild card (/tmp/pvm*) is expanded
	    on the machine in which the script is being run, not
	    on the machine to which you are remsh'ing.  You will
	    see this if you create a file called /tmp/pvml.xxx
	    where.  Assuming that this file does not exist on the
	    node to which you are remsh'ing, if you now issue:
		remsh node ls /tmp/pvml* you will get a message
	    saying /tmp/pvml.xxx not found cause the file was found
	    on the local node but not on the remote one.  Now try
		remsh node ls /tmp/pvml\*
	    This should work correctly.
	(2) The pvml.UID and pvmd.UID files depend on the user
	    id.  The user id for the same user can be different
	    for different machines.  This will particularly be the
	    case if one or more machines are included in your virtual
	    machines which are not administered together.  This is
	    the case with us.  If we want to delete the pvmd.UID
	    file on the remote machine, we must obtain the UID of
	    ourselves on that machine because it is different.  If
	    we do:  rm /tmp/pvmd.\*  , we may remove files belonging
	    do other users, i.e. disable virtual machines which are
	    running in parallel with ours.

	Good luck.  Hope this is helpful.


					Don

