On Tue, 2005-01-11 at 18:46, harold fellermann wrote:
> On 11.01.2005, at 11:34, Nader Emami wrote:
> > Would somebody help me how i can write the 'here document' in
> > Python script please? I have a csh script in which a program
> > is invoked with some argument in the form of here document:
> >
harold fellermann wrote:
f = open("/bin/exe.x","w")
print >>f , """CategoryY = GRIB
etc.
"""
This would overwrite the existing /bin/exe.x ...
HtH, Roland
--
http://mail.python.org/mailman/listinfo/python-list
On 11.01.2005, at 11:34, Nader Emami wrote:
Would somebody help me how i can write the 'here document' in
Python script please? I have a csh script in which a program
is invoked with some argument in the form of here document:
/bin/exe.x << End_Here
CategorY = GRIB
etc.
End_Here
I translate this