Op 17-11-12 17:30, Felix Miata schreef:
On 2012-11-17 14:22 (GMT+0100) Oddball composed:
Is there an easy command to get the output of a tty to an editor?
OT for this list. (<corrected)
Redirection:
e.g. you have output from ls on the screen and want it in an editor. Just hit the up key, then add
> somefilename
to what history just put on cmdline.
For some outputs you may need a more elaborate redirect, such as &>, to capture stderr as well. http://www.tldp.org/LDP/abs/html/io-redirection.html
I studied it for a while, but i seem rather dumb. I tried some of the commands to get everything listed in a file, but there seems to be no file, or i do not know where to look for it, or if and how to specify where it should be stored, in case that would be necessary. If there is a default place where it is stored, i just have to know where that is of course. I now have a large log of all that happens, on a tty. Is this output anywhere else? Or a way to get the output which is there, to a place to be able to scroll it? Please forgive me my stupidity, but the only thing i would like to accomplish, is to get the complete output of the tty, to a file, to be able to study it. I see that it registers everything that happens, should happen, or does not happen, so it might be interesting to relate some issues. I also noticed that there is a root desktop on tty3 atm, which is accessible and usable at the same time as the one in tty7, switched of course. I do not know how it gets there, unless a rootdesktop, when opened, always loads in the next available tty. I did not shut down, only sleep, because i wanted to capture the output in tty2. I looked at /var/log but there is nothing there, just wtmp, but i do not know how to open it to show normal text (ASCII) -- Have a nice day, Oddball. OS: Linux 3.7.0-rc5-2-desktop i686 Huidige gebruiker: oddball@EeePc-Rob-SFN9 Systeem: openSUSE 12.2 (i586) KDE: 4.9.3 "release 520" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org