MySQL Forums
Forum List  »  Router & Proxy

Passing variables to Lua script
Posted by: Isaac Kramer
Date: August 26, 2010 11:04AM

Any idea how pass an argument to the Lua script from an external source? It's possible to pass script arguments by starting the normal Lua interpreter with additional items through the CLI, but that doesn't seem to work with MySQL Proxy. I also don't think there's a way to create a generic environment variable through the configuration file and I don't want to rewrite the Lua script as I'm running it.

The only option I can think of is to create a new module that I can rewrite at will that only contains the variable and load that into the Lua script, but that doesn't seem efficient or safe either.

Options: ReplyQuote


Subject
Views
Written By
Posted
Passing variables to Lua script
3237
August 26, 2010 11:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.