Re: print shell output in a file
- From: "tac-tics" <tactics40@xxxxxxxxx>
- Date: 30 Jun 2006 07:40:04 -0700
It sounds like you want to use print >>
If you have an open object with a "write" property, you can do
print >> thefile, mystring
and Python will simply redirect the output to "thefile" instead of
sys.stdout.
.
- References:
- print shell output in a file
- From: Juergen Huber
- print shell output in a file
- Prev by Date: Re: string replace
- Next by Date: Re: print shell output in a file
- Previous by thread: print shell output in a file
- Next by thread: Re: print shell output in a file
- Index(es):