Quote:
Originally Posted by the dsc Thanks for the tip. I think I'll make my line somewhat like yours. Just exiting will often add many more message lines and as far as I know, there's no way to scroll back to read what got past the screen. |
You don't have to exit, you can do control+atl+f1 to change to vt1, f2 for vt2 and so on. Usually, X is started on vt7, so to go back to X, just use control+alt+f7. You can use then shift+page up/down keys to scroll a bit.
Quote:
|
But I don't understand what is the whole "2>&1" part. (but I just searched for that between the quotation marks in google and there are some answers around)
|
Search for "bash redirection" instead
That line I posted, in fact, has a slight inoffensive error (well, more like it's redundant). It should be
Code:
fvwm > ~/logs/fvwm.log 2>&1
In unix/linux, the default streams, stdin, stdout and stderr are referenced using three numbers, respectively: 0, 1 and 2.
So, the > redirects stdout to a file, the 2>&1 part redirects stderr to stdout (which in turn is redirected to a file). This way, both stderr and stdout will be logged to a file.
This is the way that sh does it, so, it's *the way* to do it if you are going to use this config on shells other than bash.
Bash also accepts this form:
Code:
fvwm &> ~/logs/fvwm.log
This redirects both (stderr and stdout) to a file. That's why I said above that the first line I posted has a small typo on it which made it redundant.
Quote:
|
I thought that just what was before that part would be enough...
|
Yep, it was a typo, as I explain above.
Quote:
(even though I thought that something like this would somehow redirect even the graphic output to the text file and end in a blank screen, but apparently I'm wrong )
|
The graphic stuff is not in shell land. It's done via a framebuffer or via an accelerated graphics driver which operates in a completely different way, so it can't be saved this way.