harold.fellermann at upf.edu
Tue Jan 11 05:46:37 EST 2005
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
> 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
What if nothing exists and everything is an illusion?
In this case I definitely overpayed my new carpet!
-- Woody Allen
More information about the Python-list