Thanks for advice, but I just don't know how use it.
May be I definition of my problem was pure. I'll try to do it better:
In next.tcl isn't only one puts commands!
I don't want tcl script print some messages!
I dont want to use some procedures in tcl (if it's possible).
Thanks a lot.
I don't know how to use getResult().toString(), it still returns nothing!
Lubos Vrba - CZE
philippe boyer wrote:
> Lubos Vrba wrote:
>
> > Hello to everybody!
> > I've this newbie problem.
> > I use java to call tcl script. This script prints something.
> > I want to know what this script prints. (create some String(s) with it)
>
> hi lubos!
>
> try this
>
> > try {
>
> > tclInterp.evalFile("next.tcl");}
>
> System.out.println(tclInterp.getResult().toString());
>
> > catch (TclException te) {System.out.println(te);}
>
> I dont know if it's work with a script like
>
> proc hello {} {
> puts "hello world"
> }
>
> but i m sure it must work with a script like
>
> proc hello {} {
> return "hello world"
> }
>
> philippe - france
>
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by WebNet Technologies.
> To subscribe: send mail to [EMAIL PROTECTED]
> with the word SUBSCRIBE as the subject.
> To unsubscribe: send mail to [EMAIL PROTECTED]
> with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'.
> A list archive is at: http://www.findmail.com/listsaver/tcldallas/
----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.
A list archive is at: http://www.findmail.com/listsaver/tcldallas/