How do I redirect output to a file and to the console screen?
- From: "28tommy" <28tommy@xxxxxxxxx>
- Date: 28 Dec 2005 09:37:28 -0800
Hi there,
I'm doing some TELNET and FTP sessions with my scripts. I need to
redirect all the output (and not just what I print) to an output file,
but still be able to see the session in process on the console.
The Console screen is of less importance, so I could give it up, but
what I'm looking for is a way to see all the interaction with the
remote seesions on a file, that all the console data was redirected to
it from within the script file.
P.S. - the command "python script_file > output_file" is not from
within the file, so it won't work for me.
Thank you (-:
.
- Follow-Ups:
- Re: How do I redirect output to a file and to the console screen?
- From: Martin Miller
- Re: How do I redirect output to a file and to the console screen?
- Prev by Date: Re: - E04 - Leadership! Google, Guido van Rossum, PSF
- Next by Date: Re: - E04 - Leadership! Google, Guido van Rossum, PSF
- Previous by thread: PyCon TX 2006: Early-bird registration ends Dec. 31!
- Next by thread: Re: How do I redirect output to a file and to the console screen?
- Index(es):
Relevant Pages
|