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 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."
Me:
Sorry I have little experience with python. Here is a page which seems to
be addressing a similar question:
http://stackoverflow.com/questions/4760215/running-shell-command-from-python-and-capturing-the-output
To get a clip board involved look at the "pbcopy and pbpaste" commands.
These allow multiple clip boards to be used from the command line.
Good luck.
XB