Re: FVWM: X-terminal question

From: Toshi Isogai <isogai_at_kentek.com>
Date: Tue, 12 Nov 1996 12:51:17 -0800

Tim Wadsworth wrote:

> I am now using fvwm2 to manage an X-terminal screen, but of course,
> /dev/console is not readable by me, and even if it were, it would have
> everybody else's messages too.
>
> How can I achieve a similar effect?
>
> Currently my .xsession (which is run by xdm) logs *some* of the messages
> to a file, but others such as
> fbconsole: open /dev/console: Permission denied
> go to /var/tmp/xdm-errors.
>
> My question is really threefold:
> 1. Why do the messages go to different places, ie. why are the
> fbconsole (presumably fbconsole == FvwmConsole?) messages immune
> to my redirect?

You can redirect outputs when you start fvwm2, something like:

        fvwm2 2>$HOME/fvwm2.errors 1>$HOME/fvwm2.outputs


> 2. How do I get all of the messages to go to the same place, and
> 3. How do I display them in a window on my X-terminal?

I experimented a little bit. Others may have better solution, but at
least it works for me.

Assuming you have a xterm open before starting fvwm2,

Add the following in init function in .fvwm2rc. This will start
FvwmConsole of fvwm side only, not its front end.

        + "I" Module FvmwConsole -e /bin/sh -c 'sleep 20'

Then, start fvwm without redirection, fvwm2 should reports any errors to
this xterm
        
        fvwm2 &

You have 20 seconds to start FvwmConsole front end.

        /usr/X11/lib/X11/fvwm2/FvwmConsoleC.pl

This should do it. All error messages will show up on the xterm.

I didn't know xterm with -C option doesn't work through xdm. If it does,
things are much easier. "FvwmConsole -C" would do.....

-- 
Toshi Isogai   
KENTEK Information Systems
isogai_at_kentek.com
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Nov 12 1996 - 13:52:16 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST