Hello Albert ,
Thanks for your pointers
I did finally get it to work
Here is what worked:
script = """SYMM %s
CELL %s
skipline
LABOUT H K L FP FOM PHIS X
CTYPOUT H H H F W P R
FORMAT '(3f4.0,f11.2,f8.2,f8.1,f8.2)'
END
eof""" %(options.symm,cellparams)
import su
On Thu, 2009-03-26 at 15:23 -0700, harijay wrote:
> Hi
> I want to run shell scripts of the following kind from inside python
> and for some reason either the os.system or the subprocess.call ways
> are not working for me .
>
> I am calling a fortran command (f2mtz ) with some keyworded input that