Re: Copy text from terminal.

2015-01-01 Thread Gabriele Battaglia
Terrific, Alex. This is the nicer one. Tanks. Gabriel. -- 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

Re: Copy text from terminal.

2015-01-01 Thread Alex Hall
Why not just pipe it directly? python myScript.py > output.txt 2> errors.txt will place any output (that is, print statements) in output.txt, and any errors (anything printed to stderr) to errors.txt. Of course, you can play with the paths or anything else you need. Or, you could put file-writi

Re: Copy text from terminal.

2015-01-01 Thread DD
Someone asked: "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 ask

Re: Copy text from terminal.

2014-12-31 Thread Barry Hadder
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 B

Re: Copy text from terminal.

2014-12-31 Thread Gabriele Battaglia
> Il giorno 30/dic/2014, alle ore 15:24, DD 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 exp

Re: Copy text from terminal.

2014-12-30 Thread DD
On Mon, 29 Dec 2014, Gabriele Battaglia wrote: Hello all. How can I copy text lines from the terminal? If there is no simple way, it would be ok also to redirect the stderr file on a .txt but how? It is not clear what you are trying to do. If you want the output from a command that appears o

Copy text from terminal.

2014-12-29 Thread Gabriele Battaglia
Hello all. How can I copy text lines from the terminal? If there is no simple way, it would be ok also to redirect the stderr file on a .txt but how? Thanks. Gabriel. — Namasté! Sent from my MacBookPro13 (Libero) -- You received this message because you are subscribed to the Google Groups "