[Tcl Java] more on redirecting stdin/stdout

1999-11-17 Thread Thomas McKay
Okay, I found the archive at http://www.mail-archive.com/tcljava@scriptics.com/ . Here's what I'm trying to do... Some of my custom command extensions to Jacl generate textual output. Now right now they simply print it in a console area of my application. My goal is to use the Jacl test framew

[Tcl Java] Re: [Tcl Java] RE: [Tcl Java] more on redirecting stdin/stdout

1999-01-16 Thread Moses DeJong
To: [EMAIL PROTECTED] > > Cc: Jacl > > Subject: [Tcl Java] Re: [Tcl Java] more on redirecting stdin/stdout > > > > > > Instead of doing puts, you should use the setResult() method. > > > > e.g. > > > > interp.setResult( "Result of the command

[Tcl Java] RE: [Tcl Java] more on redirecting stdin/stdout

1999-01-16 Thread Thomas McKay
hough. > -Original Message- > From: Shawn Boyce [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 18, 1999 8:06 AM > To: [EMAIL PROTECTED] > Cc: Jacl > Subject: [Tcl Java] Re: [Tcl Java] more on redirecting stdin/stdout > > > Instead of doing puts, you should use

[Tcl Java] Re: [Tcl Java] more on redirecting stdin/stdout

1999-01-16 Thread Shawn Boyce
Instead of doing puts, you should use the setResult() method. e.g. interp.setResult( "Result of the command" ); The Jacl interpreter will then write the string to the console. You can also save the output of the command like this: set ret [my_custom_cmd arg1 arg2] if { $ret == "expected result