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 script to Python and i don't know how can I
do this!
f = open("/bin/exe.x","w")
print >>f , """CategoryY = GRIB
etc.
"""
--
What if nothing exists and everything is an illusion?
In this case I definitely overpayed my new carpet!
-- Woody Allen
--
http://mail.python.org/mailman/listinfo/python-list