From: Axel vom Endt <Axel.vom.Endt@linmpi.mpg.de>
Newsgroups: comp.parallel.mpi
Subject: Re: Can MPIch 1.1.1 start with script ??
Date: Tue, 01 Sep 1998 13:27:48 +0200
Organization: MPI f. Aeronomie
Message-Id: <35EBDA33.802516F7@linmpi.mpg.de>
References: <6sg6n2$j34$1@news.cis.nctu.edu.tw>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


JazzRabbit wrote:
> 
> Can I run MPI with a script file?
> as following:
>     mpirun -np 3 scfile
> 
> , and in the "scfile":
>     a.out arg1 arg2

Why not

$ $SHELL script

and script reads as

  mpirun -np 3 a.out arg1 arg2

That should work. Or, if you would like to specify the nuber of
processoers on the command line:

$ $SHELL script 3

and script reads as

  mpirun -np $1 a.out arg1 arg2

Hope that helps.

-- 
  Axel vom Endt                      Office: A2_95
  Max-Planck-Institut f. Aeronomie   Phone:  +49-(0)5556-979-481
  Postfach 20                        Fax:    +49-(0)5556-979-240
  D-37191 Katlenburg-Lindau          Email:  endt@linmpi.mpg.de

