On Thu, Aug 25, 2011 at 11:07:04AM -0700, msib...@crosswire.com wrote:
> 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

No.  You set them with:

FvwmCommand 'SetEnv 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

Because they're in FVWM's process space and not anything else, and you're
wanting to use them elsewhere, you can do nothing *but* ask FVWM about them.
Again, I would just use FvwmCommand to echo the appropriate environment
variable.

Alternatively, what's the problem you're trying to solve?  Perhaps there's
an easier way, rather than relying on this rather bizarre solution to a
problem you've not (yet) stated.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

Reply via email to