Re: FVWM: Function to set dynamic menu title

From: Thomas Adam <thomas_adam16_at_yahoo.com>
Date: Wed, 18 Feb 2004 00:44:04 +0000 (GMT)

 --- Ryan Daly <daly_at_ctcnet.net> wrote:

> AddToFunc "CreateStartMenu"
> + "I" DestroyMenu StartMenu
> + "I" PipeRead 'echo `/bin/hostname -s` > $HOME/.fvwm/.hostname
                                                                   ^^^^
You didn't end it with a '. You must add a ' at the end.

> + "I" AddToMenu StartMenu `/bin/cat $HOME/.fvwm/.hostname` Title
> + "I" PipeRead `/bin/cat $HOME/.fvwm/.startmenu'
> + "I" /bin/rm $HOME/.fvwm/.hostname

> This gives me a title of "/bin/cat $HOME/.fvwm/.hostname" instead of my
> actual hostname. Am I using PipeRead correctly here?

(see above)

-- Thomas Adam

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish
you for all of them at once when you get better. The
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


        
        
                
___________________________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk
--
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 Tue Feb 17 2004 - 18:46:46 GMT

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