Hi guys!
I need the $HOSTNAME in Fvwm. Because i want to make my config portable to other computers, and therefor i need almost all of my config the same, but some parts should be different.
So my idea is, to put the different parts in seperate files named config-$HOSTNAME.foo.
And to get this files i thought i can read them in my config with
Test (f $[FVWM_USERDIR]/config.d/config-$[HOSTNAME].foo) Read $[FVWM_USERDIR]/config.d/config-$[HOSTNAME].foo
In this files are Menus und Functions.
But $HOSTNAME or $[HOSTNAME] gets not resolved/expanded… So i tried a
SetEnv HOSTNAME $[HOSTNAME]
which didn’t work. So i tried a
PipeRead ‘echo SetEnv HOSTNAME $HOSTNAME’
This doesn’t work already…
How can i get the Hostname?
scientific