Terminal -x question

Mike Massonnet mmassonnet at gmail.com
Sat Oct 23 10:23:17 CEST 2010


Hi Houghi,

I wrote an article on using XTerm as log viewers. It works with
devilspie to make them less "real windows".

http://wiki.xfce.org/howto/xterm-as-root-tail

You can of course replace xterm with terminal. You will probably need
to run it with the following command-line:

  XDG_CONFIG_HOME=$HOME/.config-special/ terminal --disable-server
--class=DesktopLog -x ...

and install a particular configuration for Terminal within
~/.config-special/Terminal/terminalrc. For instance, don't show tabs,
set the background color, etc. Well, I hope you get the picture.

Cheers
Mike

2010/10/19 houghi <houghi at houghi.org>:
> I am trying to get logging in the backhround OK. I already tried
> root-tail, but that does not work as I change the background every minute
> with `xfdesktop --reload` and that will remove the root-tail display.
> So not an option for me. :-(
>
> So I run the following:
> terminal --geometry=86x79-7+7 --hide-menubar --hide-borders -T Terminal.below
>
> This will get me the terminal I want (and with Devilspie also how I want
> it, hence the -T option)
>
> I then do the command:
> sudo /usr/bin/tail -f /var/log/messages | grep --color root
>
> This works, but I wanted to get it all in one command:
> terminal --geometry=86x79-7+7 --hide-menubar --hide-borders -T \
> Terminal.below -x sudo /usr/bin/tail -f /var/log/messages | grep \
> --color root
>
> That does not do the part after the pipe. I am able to put the whole
> comand in a seperate script tt and then do :
> terminal --geometry=86x79-7+7 --hide-menubar --hide-borders -T \
> Terminal.below -x $HOME/bin/tt
>
> However that is a bit messy to have two scripts for one task. Is there a
> way I could do this properly?
>
> houghi
> --
>>       Knock-knock.
>>       Who's there?
>>       Under the Patriot Act, we don't have to tell you that.
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
>



-- 
Mike



More information about the Xfce mailing list