Newsgroups: comp.parallel.pvm
From: edemaine@ug.cs.dal.ca (Erik Demaine)
Subject: Re: Removing /tmp/pvm* files..
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Fri, 27 Jan 1995 12:43:21 GMT
Message-ID: <D32E0B.788@cs.dal.ca>

Krishnan Subramaniam (subraman@cs.iastate.edu) 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

I think you need an rm there, and single quotes around the filename would
cause it to be evaluated remotely:

#!/bin/csh
foreach host ( `cat $PVM_ROOT/pvm.hosts` )
	echo "Hostname: $host"
	   # Note: Some systems use rsh, not remsh
	   remsh $host rm '/tmp/pvm*'
	endif
end

Erik
--
Erik Demaine        || edemaine@ug.cs.dal.ca  || edemaine@fx2800.dal.ca
edemaine@cs.dal.ca  || 01ERIK@ac.dal.ca       || edemaine@is.dal.ca
URL: http://ug.cs.dal.ca:3400/~edemaine/edemaine.html
--> A glob is a round substance of thick liquid. A blob is an unformed object.

