You can put stderr from a command into a file called errors by typing: 
command 2>errors.
You can also just capture the terminal section by typing script and exit 
when you are finished.  the session will be in a file called typescript.


On Wednesday, December 31, 2014 8:06:52 AM UTC-6, Gabriele Battaglia wrote:
>
>
> > Il giorno 30/dic/2014, alle ore 15:24, DD <and...@gmail.com 
> <javascript:>> ha scritto: 
> > 
> > It is not clear what you are trying to do.  If you want the output from 
> a command that appears on the screen in a txt file then use the "tee" 
> command. 
> > 
> > command | tee textfile 
> > 
> > If your goal is something else then please do explain in more detail. 
> Hello and thanks for answer. 
> Thanks also for this tee command which seems to be very useful. 
>
> My problem is the following. 
> I have a Python script to launch within the terminal. 
> The script exits with a quite long and detailed error which has a long 
> traceback. 
> I would like to copy all this output from terminal in the clipboard in 
> order to past it within an e-mail, and asking help and suggestions to a 
> programmer’s mailing list. 
>
> Now, this output comes up in terminal from stderr system file and I 
> thought it’s possible to redirect it on a txt file before to launch the 
> corrupted python script. So, it would be simple, than, to open that txt 
> filed and save it to the clipboard. 
>
> This for reading. 
> Gabriel. 
>
> — 
> Namasté! 
> Sent from my MacBookPro13 (Libero) 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to