Re: Executing shell command, save results to variable
Brian Osman <osman <at> vvisions.com>
2007-02-28 13:56:45 GMT
To what end? Realize that if this happens during an action, it's too late to
do anything really productive with it, because all of your rules have
Personally, when we have to solve similar problems in our (rather complex)
jam rigs, we generally just move those types of steps outside the jam files.
In order to make sure that environments and what not are configured
correctly, we already have thin wrappers (batch files, shell scripts,
whatever), so having a batch file that does that step (and stuffs the result
in an environment variable) may be the best option.
----- Original Message -----
From: "Chris Stankevitz" <cstankevitz <at> toyon.com>
To: <jamming <at> perforce.com>
Sent: Tuesday, February 27, 2007 3:36 PM
Subject: [jamming] Executing shell command, save results to variable
> Hi group,
> Is it possible to execute a shell command and save the results as a jam
> variable? The command I want to execute and its output is:
> wx-config --libs
> -pthread -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6
> -lwx_gtk2u_htm l-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6
> -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
> Thank you!