m***@crosswire.com
2011-08-25 18:07:04 UTC
Howdy,
I'd like to be able to read FVWM's environment variables from an outside
script. I can set variables with:
FvwmCommand Foo bar
And can pass through to another script by doing something like this:
FvwmCommand Test (EnvIsSet Foo) Exec somescript $[Foo]
But I want to be able to do set/get from the same script. Is there a
way to do this with one of the perl modules perhaps? I've looked at the
documentation for Fvwm::Module and Fvwm::Command and a few others and
haven't seen quite what I'm looking for yet.
I can make this work using the passthrough method above, forking and
read/writing a FIFO but that is really sloppy, and I'd rather not go in
that direction. The other option is use Fvwm::Module, but I'm not sure
that it will inherit the environment namespace of FVWM.
Any help appreciated.
Thanks in advance!
Matt
I'd like to be able to read FVWM's environment variables from an outside
script. I can set variables with:
FvwmCommand Foo bar
And can pass through to another script by doing something like this:
FvwmCommand Test (EnvIsSet Foo) Exec somescript $[Foo]
But I want to be able to do set/get from the same script. Is there a
way to do this with one of the perl modules perhaps? I've looked at the
documentation for Fvwm::Module and Fvwm::Command and a few others and
haven't seen quite what I'm looking for yet.
I can make this work using the passthrough method above, forking and
read/writing a FIFO but that is really sloppy, and I'd rather not go in
that direction. The other option is use Fvwm::Module, but I'm not sure
that it will inherit the environment namespace of FVWM.
Any help appreciated.
Thanks in advance!
Matt