Re: [tcljava-dev] doubt: using of 'expr' in Jacl
by Mo DeJong other posts by this author
Apr 11 2006 7:00PM messages near this date
[tcljava-dev] doubt: using of 'expr' in Jacl
|
Re: [tcljava-dev] doubt: using of 'expr' in Jacl
On Tue, 11 Apr 2006 15:34:14 +0530
"raj knowledge" <raj.knowledge@[...].com> wrote:
> $AdminApp edit my_webapp.war {-MapModulesToServers {{XXXX
> xxxx.war,WEB-INF/web.xml
> WebSphere:cluster=$ clusterName
> +WebSphere:cell=HD-CELLNUMBERCell02,node=$nodeName,server=$webserverName }}}
If you have vars that need to be evaluated, pass in double quotes:
set name Bob
set word "My name is $name"
puts $word
(The above will print: "My name is Bob")
If you pass a brace quoted string then no $ subst will be done.
set name Bob
set word {My name is $name}
puts $word
(The above will print: "My name is $name")
P.S.
The expr is for math expressions and has nothing to do with the problem you are having.
Mo DeJong
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
Thread:
Raj Knowledge
Mo DeJong
Raj Knowledge
|