Re: FVWM: X-terminal question

From: Albrecht Kadlec <albrecht_at_auto.tuwien.ac.at>
Date: Wed, 13 Nov 96 19:08:50 +0100

>>>>> Dan Espen writes:

D> Tim Wadsworth <Tim.Wadsworth_at_cambridge.simoco.com> writes:
> Hi,
>
> To display messages from fvwm on a workstation, I used to use
> xconsole. I believe that fvwm2 has a module, FvwmConsole, which gets
> started by default, that performs a similar function.

D> FvwmConsole does not perform a similar function:

D> The FvwmConsole allows the user to type fvwm commands into xterm, and
D> have them executed immediately. These commands are usually specfified
D> in the .fvwmrc file, or are bound to menu/mouse items as specified in
D> that file. This tools is particularly useful for testing new
D> configuration ideas, or for implementing temporary changes to your
D> environment.

> 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?
> 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?

related questions below

D> You need to run something as your console. You can still use
D> xconsole, or you can use one of the many substitutes including xterm
D> with the -C flag.

which are ?

I use:

        *FvwmButtons(10x2, Swallow (UseOld, NoClose, Respawn) "Console"
                "Exec console -display $HOSTDISPLAY -geometry 70x5-1500-1500")
        
with console being:
        #!/usr/local/lbin/tcsh
        exec xterm -name Console -C ${argv[1-]} &

on my main machine, and
        #!/usr/local/lbin/tcsh
        exec rsh vta_host -n "exec xterm -name Console ${argv[1-]}
                                                </dev/null >&/dev/null &"
on any remote machine since I can't access /dev/console from there.

So I have a small window to both
        show me console messages, if I'm on my main machine
        enter commands (i.e: start netscape & others as I see fit)

I'd like to extend this to:
        show me fvwm2 messages
        enter fvwm2 commands

The latter can be accomplished with FvwmPipe and echoing to that pipe.
The former is the problem.

How do I get xterm to show me not only the messages to the console, but
also messages which are echoed to another pipe/file ???

I could redirect the fvwm2 output to the console, but that's not
acceptable, if somebody else is using that machine (& the console).
I'd find it rather rude if sombody wrote his errors to my console.
(and permissions woiuldn't allow that anyway)


Any suggestions?

Can I redirect /dev/Console to another pipe (say ~/.messages) and also pipe
fvwm2 output there?

Can I get xterm (or any substitute - which ? -) to read special messages
from an arbitrary pipe?

HELP !!! (been trying this for some time now, but never found a way)
albrecht

(the solution for this problem would eliminate any use of FvwmConsole and
save much screen space)
-- 
If you negotiate the minefield in the drive
And beat the dogs and cheat the cold electronic eyes
And if you make it past the shotgun in the hall
Dial the combination.  open the priesthole
And if i'm in i'll tell you what's behind the wall
				-- Pink Floyd, "The Final Cut"
--
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 Wed Nov 13 1996 - 12:09:53 GMT

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