I have just added that a new command line parameter to the grtsh. You can now use -D to define global variables in the form of -D var=value.
Example:
grtsh -D user=mike -D pwd=12345
/ > print(grtV.toLua(user) .. "/" .. grtV.toLua(pwd))
mike/12345
Please note that the values are passed as GRT values, so you need grtV.toLua() to convert them to Lua varibles.
Of course you can also use interactive input of values.
/ > username= input("username: ")
username: mike
/ > print(username)
mike
The -D command line parameter for the grtsh is in the new 1.0.18 release I just uploaded. Until the mirrors have catched up you can download from
ftp://ftp.mysql.com/pub/mysql/download/mysql-migration-toolkit-1.0.18-rc-win32.msi
Mike
Michael Zinner, Team Lead, Developer Tools
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification