Re: FVWM: PipeRead

From: Scott Smedley <scottie7_at_tpg.com.au>
Date: Sun, 6 Apr 2003 15:28:03 +1000

> Work from something simpler up to what you need.
> As one line, I got the else clause to work like this:
>
> PipeRead 'if [ -r $HOME/.fvwmColors ] ; then fg=`cat $HOME/.fvwmColors | cut -f3 -d" "`; bg=`cat $HOME/.fvwmColors | cut -f4 -d" "`; else fg=AntiqueWhite bg=RoyalBlue; fi; echo "echo *FvwmButtons: Fore $fg"; echo "echo *FvwmButtons: Back $bg"'
> Watch the semicolons.

Ah, thanks.

Incidentally, I had to convert the `cat ...` syntax to $(cat ...)
to get it to work with FvwmM4 preprocessing.

SCoTTie! :)
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Apr 05 2003 - 22:42:56 BST

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