Phil.Daws_at_daimlerchryslerservices-it.co.uk writes:
>
> Hi Dan :
>
> Could you please expand please ? I understand the principal and use of piped
> output but how would you use them in this instance?
Sure.
The shell "MyShell":
echo "SetEnv MYVAR test"
In your .fvwm2rc:
PipeRead "MyShell"
Exec echo "MYVAR has been set to $$MYVAR"
The SetEnv command comes out of piperead to fvwm, where fvwm executes
it as an Fvwm command. Check the man page for SetEnv.
Then anything Fvwm executes will inherit Fvwm's environment and
see the variable.
In the echo I used above, I used 2 dollar signs so that the shell
would expand MYVAR, otherwise, fvwm expands it. It would work either
way.
--
Dan Espen E-mail: dane_at_mk.telcordia.com
--
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 Thu Oct 31 2002 - 10:57:19 GMT