[Glass] How to read external variables from topaz command line?

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Tue Oct 20 12:15:41 PDT 2015


I think that the trick is that in general GeMSTone will do env varialble 
expansion for file names and not anywhere else ... so using a here 
document works:

   topaz --l << EOF
set user $GEMSTONE_UPGRADE_USERNAME pass $GEMSTONE_UPGRADE_PASSWORD
login
EOF

But this doesn't work for an interactive login ....

Dale


On 10/20/2015 11:01 AM, Mariano Martinez Peck via Glass wrote:
> Hi Bruno,
>
> What I am trying to do, is to input a file relative to the directory 
> where the stone is located. If you use gsDevKit_home to manage your 
> stones, what I mean is that I want to input a file relative 
> to $GS_HOME/server/stones/stoneX/
> For example, if you see  $GS_HOME/server/stones/stoneX/stone.env  at 
> the very end you see the exported variables.
> Or even if you don't use gsDevKit_home but you use the old seaside 
> extent and defSeaside. Those export some variables as well. So at the 
> end, what I want to do is something like this:
>
> topaz1> input $GEMSTONE_STONE_DIR/myFile.txt
>
> and myFile.txt being  $GS_HOME/server/stones/stoneX/myFile.txt
>
> But topaz cannot see $GEMSTONE_STONE_DIR neither the rest of the 
> exported variables, even if the shell in which I run topaz, DO see it.
>
> I can live without this and I do have a workaround, but just wondering 
> if this would be possible.
>
> Thanks!
>
> On Tue, Oct 20, 2015 at 2:40 PM, BrunoBB via Glass 
> <glass at lists.gemtalksystems.com 
> <mailto:glass at lists.gemtalksystems.com>> wrote:
>
>     Hi,
>
>     But you can create a class to export those variables to a file and
>     then from
>     topaz input that file.
>
>     TopazExporter default exportMyVariablesTo: pathFile
>
>     Then:
>
>     topaz> input pathFile.
>
>     What are you trying to achieve ?
>     i not kwow if the above will help you...
>
>     Regards,
>     Bruno
>
>
>
>     --
>     View this message in context:
>     http://forum.world.st/How-to-read-external-variables-from-topaz-command-line-tp4856749p4856840.html
>     Sent from the GLASS mailing list archive at Nabble.com.
>     _______________________________________________
>     Glass mailing list
>     Glass at lists.gemtalksystems.com <mailto:Glass at lists.gemtalksystems.com>
>     http://lists.gemtalksystems.com/mailman/listinfo/glass
>
>
>
>
> -- 
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20151020/845f03e4/attachment.html>


More information about the Glass mailing list