tcljava-user Mailing List for Tcl/Java (Page 12)
Brought to you by:
mdejong
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(23) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(12) |
Feb
(10) |
Mar
(16) |
Apr
(10) |
May
(40) |
Jun
(13) |
Jul
(18) |
Aug
(4) |
Sep
(6) |
Oct
(3) |
Nov
|
Dec
(3) |
2002 |
Jan
(15) |
Feb
(19) |
Mar
(1) |
Apr
(11) |
May
(12) |
Jun
(10) |
Jul
(2) |
Aug
(22) |
Sep
|
Oct
(3) |
Nov
(9) |
Dec
(20) |
2003 |
Jan
(32) |
Feb
(5) |
Mar
(26) |
Apr
(30) |
May
(10) |
Jun
(8) |
Jul
(17) |
Aug
(7) |
Sep
(24) |
Oct
(7) |
Nov
(6) |
Dec
|
2004 |
Jan
(5) |
Feb
|
Mar
|
Apr
(7) |
May
(8) |
Jun
(12) |
Jul
(3) |
Aug
(11) |
Sep
(8) |
Oct
(4) |
Nov
(2) |
Dec
(6) |
2005 |
Jan
(8) |
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(19) |
Jul
(8) |
Aug
(22) |
Sep
(12) |
Oct
(35) |
Nov
(12) |
Dec
(4) |
2006 |
Jan
(20) |
Feb
(14) |
Mar
(23) |
Apr
(10) |
May
(11) |
Jun
(1) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(17) |
Dec
(10) |
2007 |
Jan
(41) |
Feb
(6) |
Mar
(23) |
Apr
(15) |
May
(34) |
Jun
(5) |
Jul
(18) |
Aug
(13) |
Sep
(8) |
Oct
(9) |
Nov
(7) |
Dec
(2) |
2008 |
Jan
|
Feb
(1) |
Mar
(18) |
Apr
(1) |
May
(1) |
Jun
(10) |
Jul
(3) |
Aug
|
Sep
(10) |
Oct
(3) |
Nov
(13) |
Dec
(3) |
2009 |
Jan
(4) |
Feb
(10) |
Mar
(1) |
Apr
(11) |
May
(3) |
Jun
(7) |
Jul
(4) |
Aug
(9) |
Sep
(16) |
Oct
(3) |
Nov
(5) |
Dec
(2) |
2010 |
Jan
(3) |
Feb
|
Mar
|
Apr
(7) |
May
(1) |
Jun
|
Jul
|
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2011 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
(17) |
May
(4) |
Jun
(17) |
Jul
(5) |
Aug
(7) |
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(12) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
(2) |
Oct
(6) |
Nov
|
Dec
(2) |
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
(8) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(1) |
Jun
(3) |
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Chongkai J. <cho...@gm...> - 2008-03-20 14:23:25
|
Hi there, I'm trying to incorporate snmp4j into tcl by tcl blend. I wrote a Java class and used Tcl blend commands to access it in Tcl, but I got the following failures, Assertion failed: tsdPtr->initialized, file c:/TclBlendSrc/tcljava/src/native/javaCmd.c, line 359 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Anyone could tell me what could have gone wrong? Is it possibly related to thread safety? snmp4j sends a request and waits for response, but I'm not sure if it does that in another thread. Thanks. |
From: Jared H. <ho...@mo...> - 2008-03-12 12:28:24
|
That's it exactly. Thanks. -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of Tom Poindexter Sent: Tuesday, March 11, 2008 9:25 PM To: A list for users of tcljava Subject: Re: [tcljava-user] Real "inner class" construction On Tue, Mar 11, 2008 at 11:15:52AM -0500, Jared Hodge wrote: > In Jacl 1.4.0 Is there any way to instantiate a true "inner class" in > jacl as is described in: > > http://java.sun.com/docs/books/tutorial/java/javaOO/summarynested.html > > > > I see how to instantiate a static nested class: > > set myNewStaticNestedObject [java::call OuterClass.NestedClass > $constructorArg1] > > > > but I don't see the jacl equivalent to > > OuterClass.InnerClass innerObject = outerObject.new InnerClass(); > > > > I guess I could make my inner class static nested and pass in the outer > class as an argument, but that gets messy in the java. This should be possible, the trick is that a constructor to the inner class has an implicit argument of the outer class. I coded up a simple exmaple, see if you can apply it to your classes: // //////////////////////////////////////////////////////////////// // foo/Bar.java package foo; public class Bar { private String s; public Bar(String s) { this.s = s; } public String getS() { return "Bar s: " + s; } public class InnerBar { public InnerBar() {} public void printIt() { System.out.println("my Bar = " + getS()); } } } // end foo/Bar.java // //////////////////////////////////////////////////////////////// $ javac foo/Bar.java $ jaclsh % package require java 1.4.1 % set B [java::new foo.Bar bing] java0x1 % $B getS Bar s: bing % java::info constructors foo.Bar {foo.Bar java.lang.String} % java::info constructors foo.Bar.InnerBar {{foo.Bar$InnerBar} foo.Bar} % set IB [java::new foo.Bar.InnerBar $B] java0x2 % $IB printIt my Bar = Bar s: bing -- Tom Poindexter tpo...@ny... ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Tom P. <tpo...@ny...> - 2008-03-12 02:25:28
|
On Tue, Mar 11, 2008 at 11:15:52AM -0500, Jared Hodge wrote: > In Jacl 1.4.0 Is there any way to instantiate a true "inner class" in > jacl as is described in: > > http://java.sun.com/docs/books/tutorial/java/javaOO/summarynested.html > > > > I see how to instantiate a static nested class: > > set myNewStaticNestedObject [java::call OuterClass.NestedClass > $constructorArg1] > > > > but I don't see the jacl equivalent to > > OuterClass.InnerClass innerObject = outerObject.new InnerClass(); > > > > I guess I could make my inner class static nested and pass in the outer > class as an argument, but that gets messy in the java. This should be possible, the trick is that a constructor to the inner class has an implicit argument of the outer class. I coded up a simple exmaple, see if you can apply it to your classes: // //////////////////////////////////////////////////////////////// // foo/Bar.java package foo; public class Bar { private String s; public Bar(String s) { this.s = s; } public String getS() { return "Bar s: " + s; } public class InnerBar { public InnerBar() {} public void printIt() { System.out.println("my Bar = " + getS()); } } } // end foo/Bar.java // //////////////////////////////////////////////////////////////// $ javac foo/Bar.java $ jaclsh % package require java 1.4.1 % set B [java::new foo.Bar bing] java0x1 % $B getS Bar s: bing % java::info constructors foo.Bar {foo.Bar java.lang.String} % java::info constructors foo.Bar.InnerBar {{foo.Bar$InnerBar} foo.Bar} % set IB [java::new foo.Bar.InnerBar $B] java0x2 % $IB printIt my Bar = Bar s: bing -- Tom Poindexter tpo...@ny... |
From: Jared H. <ho...@mo...> - 2008-03-11 16:17:06
|
In Jacl 1.4.0 Is there any way to instantiate a true "inner class" in jacl as is described in: http://java.sun.com/docs/books/tutorial/java/javaOO/summarynested.html I see how to instantiate a static nested class: set myNewStaticNestedObject [java::call OuterClass.NestedClass $constructorArg1] but I don't see the jacl equivalent to OuterClass.InnerClass innerObject = outerObject.new InnerClass(); I guess I could make my inner class static nested and pass in the outer class as an argument, but that gets messy in the java. Thanks, Jared |
From: Khim T. <kt...@dt...> - 2008-03-08 21:02:09
|
I will be out of the office starting 03/07/2008 and will not return until 03/10/2008. Please contact the SCM Hotline for all issues, x8750. Thank you! Warm Regards, Khim Theng ----------------------------------------- ________________________________________________________ DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. |
From: Justin R. <ju...@ha...> - 2008-03-08 20:33:35
|
> IMO, spawn command is what creates a connection to the process so that it is accessible for other Expect commands. So, If I run the telnet client outside my tcl script, how does it work other Expect commands. My understanding is that you are running telnetserver.jar as one process. Then, you want to connect to it using a telnet client and then automate the connection using expect. Right? In C-based expect, when you run the command 'spawn telnet' it runs the system's telnet client. Since the process was started by tcl, it has control of child process's stdin and stdout. The process connects via tcp and handles all the weird telnet protocol stuff that goes on. Expect uses the stdin and stdout to do its fancy expect/send statements. Example of running: > package require expect > spawn /usr/bin/telnet hostname > expect "login: " In expect4j, to be as platform independent as possible, the spawn command runs jakarta's commons-net library to connect via telnet. The library simulates as much as possible, so you can the above command just fine. The example found in the wiki (http://code.google.com/p/expect4j/wiki/Installation) is: > package require java > java::load expect4j.ExpectEmulation > package require expect > > spawn telnet 192.168.0.1 > expect "login: " > send "root\r" > expect "Password:" > send "supersecret\r" > expect "root@router:~# " Your email pushed to be document some of this stuff. So I think you'll find the example matches your initial email pretty closely. Further instructions pertaining to classpath can be found in the wiki too. If you have any problems. I'd love to hear them. If anyone knows how I can avoid the "java::load expect4j.ExpectEmulation", when running from tcl.lang.Shell, I'd love to know how. I've previously orchestrated the Intrep from my java program, and had it load my class before running some a tcl scipt. This way I can take c-based expect scripts and run them seamlessly. Justin Ryan Halfempty Industries |
From: <ven...@wi...> - 2008-03-07 04:29:37
|
Hi, Thanks for all your inputs. Shibu, You got it right. I want to talk to a java based telnet client. The question that I had was how do I spawn the telnet process. >From your reply, I understand that I have to invoke the java based client outside my tcl script and just use Expect from my tcl script to talk to it. Correct me If I'm wrong. IMO, spawn command is what creates a connection to the process so that it is accessible for other Expect commands. So, If I run the telnet client outside my tcl script, how does it work other Expect commands. Best Regards, Venu Gopal V ________________________________ From: tcl...@li... on behalf of tcl...@li... Sent: Fri 3/7/2008 1:35 AM To: tcl...@li... Subject: tcljava-user Digest, Vol 20, Issue 2 Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. Re: A question involving expect,java and tcl (Shibu Cyriac) ---------------------------------------------------------------------- Message: 1 Date: Thu, 6 Mar 2008 11:05:00 +0530 (IST) From: Shibu Cyriac <shi...@ya...> Subject: Re: [tcljava-user] A question involving expect,java and tcl To: tcl...@li... Message-ID: <399...@we...> Content-Type: text/plain; charset="utf-8" Hello Venugopal, My understanding is that your requirement is to use the java based telnet client as like any other telnet client. Also, you are not going to add any extra code to this client for any added functionality. I believe, from your example, all you want to do is automate the telnet process what you are doing manually now. If this is the case, you dont have to use TclBlend for this purpose. A simple expect script will serve the purpose. -Shibu ----- Original Message ---- From: "tcl...@li..." <tcl...@li...> To: tcl...@li... Sent: Thursday, 6 March, 2008 1:42:41 AM Subject: tcljava-user Digest, Vol 20, Issue 1 Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. A question involving expect,java and tcl (ven...@wi...) 2. Re: A question involving expect,java and tcl (Tom Poindexter) 3. Re: A question involving expect,java and tcl (Patrick Finnegan) ---------------------------------------------------------------------- Message: 1 Date: Wed, 5 Mar 2008 18:34:05 +0530 From: <ven...@wi...> Subject: [tcljava-user] A question involving expect,java and tcl To: <tcl...@li...> Message-ID: <7F2...@BL...> Content-Type: text/plain; charset="iso-8859-1" Hi, I have a telnet client application written in java. The telnet application which is written in java is generally invoked from my Windows PC as below: java -jar telnetserver.jar <portnumber of the server> I want to interact with this telnet client in a tcl script using Expect. I read some articles informing that Tclblend allows me to interact with java application from a Tcl script. But I couldn't find exact information about how Expect can be used along with java application inside a Tcl script. Please let me know how can I accomplish this task. The below snippet is what I'm thinking of using to perform this task. Please correct me incase I miss something. ++++++++++++++++++++++++++++++ package require Expect package require Java #Spawn a telnet session to the telnet server running on the target device spawn java -jar telnetserver.jar <port number where Telnet server is listening> expect "*in:" send "<username>\r" expect "*Password:" send "<password>\r" #Put a expression which you expect at the command prompt # For example: # A prompt like "[anil@Testers anil]$" requires # expect "*anil]$ " expect "<expression which we expect at the command prompt><space>" ++++++++++++++++++++++++++++++++++ Thanks In Advance, Venu Gopal V -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Wed, 5 Mar 2008 07:21:48 -0700 From: Tom Poindexter <tpo...@ny...> Subject: Re: [tcljava-user] A question involving expect,java and tcl To: A list for users of tcljava <tcl...@li...> Message-ID: <200...@ny...> Content-Type: text/plain; charset=us-ascii On Wed, Mar 05, 2008 at 06:34:05PM +0530, ven...@wi... wrote: > I want to interact with this telnet client in a tcl script using Expect. > I read some articles informing that Tclblend allows me to interact with java application from a Tcl script. > But I couldn't find exact information about how Expect can be used along with java application inside a Tcl script. There is already a port of Expect for Jacl, see the message from Justin Ryan in this thread: http://sourceforge.net/mailarchive/forum.php?thread_name=67e5f3da0711080735k4820242ascc219f87c52ac45d%40mail.gmail.com&forum_name=tcljava-user Justin's code is available at: http://code.google.com/p/expect4j/ -- Tom Poindexter tpo...@ny... ------------------------------ Message: 3 Date: Wed, 5 Mar 2008 15:24:53 +0000 From: Patrick Finnegan <pfi...@oz...> Subject: Re: [tcljava-user] A question involving expect,java and tcl To: A list for users of tcljava <tcl...@li...> Message-ID: <200...@oz...> Content-Type: text/plain; charset="iso-8859-15" On Wednesday 05 March 2008 13:04:05 ven...@wi... wrote: > Hi, > > I have a telnet client application written in java. > > The telnet application which is written in java is generally invoked from > my Windows PC as below: java -jar telnetserver.jar <portnumber of the > server> > > I want to interact with this telnet client in a tcl script using Expect. > I read some articles informing that Tclblend allows me to interact with > java application from a Tcl script. But I couldn't find exact information > about how Expect can be used along with java application inside a Tcl > script. > > Please let me know how can I accomplish this task. > > The below snippet is what I'm thinking of using to perform this task. > Please correct me incase I miss something. > > ++++++++++++++++++++++++++++++ > package require Expect > package require Java > > #Spawn a telnet session to the telnet server running on the target device > spawn java -jar telnetserver.jar <port number where Telnet server is > listening> > > expect "*in:" > send "<username>\r" > expect "*Password:" > send "<password>\r" > > #Put a expression which you expect at the command prompt > # For example: > # A prompt like "[anil@Testers anil]$" requires > # expect "*anil]$ " > expect "<expression which we expect at the command prompt><space>" > ++++++++++++++++++++++++++++++++++ > > Thanks In Advance, > Venu Gopal V TclBlend launches it's own Jvm and can act as a java client to a remote java application only if Jvm interprocess communication is available i.e. where an application running on the remote Jvm is configured to listen on a specific port. In your case it seems that the application "telnetserver.jar" runs in a remote Jvm launched by the " java -jar telnetserver.jar" command and listens for telnet connections. Just use expect as the telnet client and spawn a connection to the remote java telnet server from Tcl Blend. package require Expect spawn telnet $host On the other hand if you want to manipulate "telnetserver.jar" then it needs a programming api or a jmx management interface. ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest, Vol 20, Issue 1 ******************************************* 5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest, Vol 20, Issue 2 ******************************************* |
From: Shibu C. <shi...@ya...> - 2008-03-06 05:35:03
|
Hello Venugopal, My understanding is that your requirement is to use the java based telnet client as like any other telnet client. Also, you are not going to add any extra code to this client for any added functionality. I believe, from your example, all you want to do is automate the telnet process what you are doing manually now. If this is the case, you dont have to use TclBlend for this purpose. A simple expect script will serve the purpose. -Shibu ----- Original Message ---- From: "tcl...@li..." <tcl...@li...> To: tcl...@li... Sent: Thursday, 6 March, 2008 1:42:41 AM Subject: tcljava-user Digest, Vol 20, Issue 1 Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. A question involving expect,java and tcl (ven...@wi...) 2. Re: A question involving expect,java and tcl (Tom Poindexter) 3. Re: A question involving expect,java and tcl (Patrick Finnegan) ---------------------------------------------------------------------- Message: 1 Date: Wed, 5 Mar 2008 18:34:05 +0530 From: <ven...@wi...> Subject: [tcljava-user] A question involving expect,java and tcl To: <tcl...@li...> Message-ID: <7F2...@BL...> Content-Type: text/plain; charset="iso-8859-1" Hi, I have a telnet client application written in java. The telnet application which is written in java is generally invoked from my Windows PC as below: java -jar telnetserver.jar <portnumber of the server> I want to interact with this telnet client in a tcl script using Expect. I read some articles informing that Tclblend allows me to interact with java application from a Tcl script. But I couldn't find exact information about how Expect can be used along with java application inside a Tcl script. Please let me know how can I accomplish this task. The below snippet is what I'm thinking of using to perform this task. Please correct me incase I miss something. ++++++++++++++++++++++++++++++ package require Expect package require Java #Spawn a telnet session to the telnet server running on the target device spawn java -jar telnetserver.jar <port number where Telnet server is listening> expect "*in:" send "<username>\r" expect "*Password:" send "<password>\r" #Put a expression which you expect at the command prompt # For example: # A prompt like "[anil@Testers anil]$" requires # expect "*anil]$ " expect "<expression which we expect at the command prompt><space>" ++++++++++++++++++++++++++++++++++ Thanks In Advance, Venu Gopal V -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Wed, 5 Mar 2008 07:21:48 -0700 From: Tom Poindexter <tpo...@ny...> Subject: Re: [tcljava-user] A question involving expect,java and tcl To: A list for users of tcljava <tcl...@li...> Message-ID: <200...@ny...> Content-Type: text/plain; charset=us-ascii On Wed, Mar 05, 2008 at 06:34:05PM +0530, ven...@wi... wrote: > I want to interact with this telnet client in a tcl script using Expect. > I read some articles informing that Tclblend allows me to interact with java application from a Tcl script. > But I couldn't find exact information about how Expect can be used along with java application inside a Tcl script. There is already a port of Expect for Jacl, see the message from Justin Ryan in this thread: http://sourceforge.net/mailarchive/forum.php?thread_name=67e5f3da0711080735k4820242ascc219f87c52ac45d%40mail.gmail.com&forum_name=tcljava-user Justin's code is available at: http://code.google.com/p/expect4j/ -- Tom Poindexter tpo...@ny... ------------------------------ Message: 3 Date: Wed, 5 Mar 2008 15:24:53 +0000 From: Patrick Finnegan <pfi...@oz...> Subject: Re: [tcljava-user] A question involving expect,java and tcl To: A list for users of tcljava <tcl...@li...> Message-ID: <200...@oz...> Content-Type: text/plain; charset="iso-8859-15" On Wednesday 05 March 2008 13:04:05 ven...@wi... wrote: > Hi, > > I have a telnet client application written in java. > > The telnet application which is written in java is generally invoked from > my Windows PC as below: java -jar telnetserver.jar <portnumber of the > server> > > I want to interact with this telnet client in a tcl script using Expect. > I read some articles informing that Tclblend allows me to interact with > java application from a Tcl script. But I couldn't find exact information > about how Expect can be used along with java application inside a Tcl > script. > > Please let me know how can I accomplish this task. > > The below snippet is what I'm thinking of using to perform this task. > Please correct me incase I miss something. > > ++++++++++++++++++++++++++++++ > package require Expect > package require Java > > #Spawn a telnet session to the telnet server running on the target device > spawn java -jar telnetserver.jar <port number where Telnet server is > listening> > > expect "*in:" > send "<username>\r" > expect "*Password:" > send "<password>\r" > > #Put a expression which you expect at the command prompt > # For example: > # A prompt like "[anil@Testers anil]$" requires > # expect "*anil]$ " > expect "<expression which we expect at the command prompt><space>" > ++++++++++++++++++++++++++++++++++ > > Thanks In Advance, > Venu Gopal V TclBlend launches it's own Jvm and can act as a java client to a remote java application only if Jvm interprocess communication is available i.e. where an application running on the remote Jvm is configured to listen on a specific port. In your case it seems that the application "telnetserver.jar" runs in a remote Jvm launched by the " java -jar telnetserver.jar" command and listens for telnet connections. Just use expect as the telnet client and spawn a connection to the remote java telnet server from Tcl Blend. package require Expect spawn telnet $host On the other hand if you want to manipulate "telnetserver.jar" then it needs a programming api or a jmx management interface. ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest, Vol 20, Issue 1 ******************************************* 5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html |
From: Patrick F. <pfi...@oz...> - 2008-03-05 15:25:02
|
On Wednesday 05 March 2008 13:04:05 ven...@wi... wrote: > Hi, > > I have a telnet client application written in java. > > The telnet application which is written in java is generally invoked from > my Windows PC as below: java -jar telnetserver.jar <portnumber of the > server> > > I want to interact with this telnet client in a tcl script using Expect. > I read some articles informing that Tclblend allows me to interact with > java application from a Tcl script. But I couldn't find exact information > about how Expect can be used along with java application inside a Tcl > script. > > Please let me know how can I accomplish this task. > > The below snippet is what I'm thinking of using to perform this task. > Please correct me incase I miss something. > > ++++++++++++++++++++++++++++++ > package require Expect > package require Java > > #Spawn a telnet session to the telnet server running on the target device > spawn java -jar telnetserver.jar <port number where Telnet server is > listening> > > expect "*in:" > send "<username>\r" > expect "*Password:" > send "<password>\r" > > #Put a expression which you expect at the command prompt > # For example: > # A prompt like "[anil@Testers anil]$" requires > # expect "*anil]$ " > expect "<expression which we expect at the command prompt><space>" > ++++++++++++++++++++++++++++++++++ > > Thanks In Advance, > Venu Gopal V TclBlend launches it's own Jvm and can act as a java client to a remote java application only if Jvm interprocess communication is available i.e. where an application running on the remote Jvm is configured to listen on a specific port. In your case it seems that the application "telnetserver.jar" runs in a remote Jvm launched by the " java -jar telnetserver.jar" command and listens for telnet connections. Just use expect as the telnet client and spawn a connection to the remote java telnet server from Tcl Blend. package require Expect spawn telnet $host On the other hand if you want to manipulate "telnetserver.jar" then it needs a programming api or a jmx management interface. |
From: Tom P. <tpo...@ny...> - 2008-03-05 14:21:49
|
On Wed, Mar 05, 2008 at 06:34:05PM +0530, ven...@wi... wrote: > I want to interact with this telnet client in a tcl script using Expect. > I read some articles informing that Tclblend allows me to interact with java application from a Tcl script. > But I couldn't find exact information about how Expect can be used along with java application inside a Tcl script. There is already a port of Expect for Jacl, see the message from Justin Ryan in this thread: http://sourceforge.net/mailarchive/forum.php?thread_name=67e5f3da0711080735k4820242ascc219f87c52ac45d%40mail.gmail.com&forum_name=tcljava-user Justin's code is available at: http://code.google.com/p/expect4j/ -- Tom Poindexter tpo...@ny... |
From: <ven...@wi...> - 2008-03-05 13:05:22
|
Hi, I have a telnet client application written in java. The telnet application which is written in java is generally invoked from my Windows PC as below: java -jar telnetserver.jar <portnumber of the server> I want to interact with this telnet client in a tcl script using Expect. I read some articles informing that Tclblend allows me to interact with java application from a Tcl script. But I couldn't find exact information about how Expect can be used along with java application inside a Tcl script. Please let me know how can I accomplish this task. The below snippet is what I'm thinking of using to perform this task. Please correct me incase I miss something. ++++++++++++++++++++++++++++++ package require Expect package require Java #Spawn a telnet session to the telnet server running on the target device spawn java -jar telnetserver.jar <port number where Telnet server is listening> expect "*in:" send "<username>\r" expect "*Password:" send "<password>\r" #Put a expression which you expect at the command prompt # For example: # A prompt like "[anil@Testers anil]$" requires # expect "*anil]$ " expect "<expression which we expect at the command prompt><space>" ++++++++++++++++++++++++++++++++++ Thanks In Advance, Venu Gopal V |
From: Tom P. <tpo...@ny...> - 2008-02-23 16:47:50
|
Aejaks 0.7 is now ready, download the latest at http://aejaks.sf.net. Summary of changes for this release: Additional container widgets now provide absolute positioning of child widgets. Table widget now allows custom cell and header renderers. Window setFocusedComponent method allows focus to be set on a widget. BrowserCommand setwaitms method sets interval for browser "Please wait" message. ------------------------------------------------------------------------------- Detailed CHANGES for this release: 0.7 2008-02-22 * Widgets from EchopointNG ContainerEx (allows absolute positioning) ContentPaneEx ( " " " ) Strut (simple spacer component) DisplayLayoutData (positioning info) ScrollableDisplayLayoutData ( " " ) * Table header and cell renderers, allow custom widgets to be defined for headers and cells. Tables now expand gracefully with null data when -rows or -columns are increased. * Strip leading "::" from widget names during Pack. Pack updated for new container widgets and layout data. * SplitPaneLayoutData -overflow option now takes a symbolic name instead of integer (POTENTIAL INCOMPATIBILITY) * Added ". setFocusedComponent $wid" to Window object, allows focus to be set on a widget. * Added "BrowserCommand setwaitms $ms" to set the interval before displaying the "Please wait" message box. * New widget_tour.tcl demos for Table renderers, absolute positioning for new containers. Check out the "analog clock" in the 'ContainersEx' demo!! * Updated docs. * Updated Echo2, Extras, EchopointNG libraries to latest versions. ------------------------------------------------------------------------------- README AEJAKS: http://aejaks.sf.net ABOUT: Aejaks combines the server-side Ajax windowing system Echo2 with the powerful simplicity of the Tcl langauge. The result is a rich development environment in which to develop Ajax-based web applications, often with much less code to write. Building a Rich Internet Application (RIA) usually means having to write your application in a variety of languages and markup: HTML, CSS, and Javascript for the browser, plus some backend language (PHP, Java, Tcl, etc.) With Aejaks, you only need a single language: Tcl. Aejaks applications resemble desktop Tcl/Tk applications. Aejaks uses a Tk-inspired object interface to create and interact with widgets. Classic "Hello world" in Aejaks: Button .hello -text "Hello world" -command {. exitApp /index.html} Pack .hello The first line creates a Button widget named '.hello' and defines a command to be run when the button is pressed (exit the application and tell the browser to load the index.html page.) The second line makes the Button widget visible in the browser window. That's all you need! AUTHOR: Aejaks was conceived and written by Tom Poindexter. Please subscribe and use the mailing list for Aejaks related discussion. Subscription information at: http://lists.sourceforge.net/lists/listinfo/aejaks-general If you really, absolutely need to get in touch with me privately, email: tpo...@ny... ACKNOWLEDGEMENTS: Aejaks stands on the shoulders of giants, and would not be possible without the contributions of a host of very talented programmers and artists: Echo2: Tod Liebeck, NextApp Tcl/Jacl John Ousterhout, Ioi Lam, Brian Smith, Mo DeJong IncrTcl: Michael J. McLennan, Mo DeJong Jetty: Greg Wilkins, Mort Bay Consulting Clcms: Jelte Jansen EchopointNG: Brad Bakerman Nuvola icons: David Vignoni DOWNLOAD: http://sourceforge.net/project/showfiles.php?group_id=184611 or http://sourceforge.net/projects/aejaks Three downloads are available (where 'x.y' is the current version): aejaks-x.y-exe.tar.gz aejaks-x.y-exe.zip This package contains everything required to run, develop and deploy Aejaks applications. Included are the aejaks.war file, Jetty web server, sample scripts, and documentation. Java 1.4 or higher is required to run the Aejaks and the Jetty web server. http://java.sun.com aejaks-x.y-src.tar.gz aejaks-x.y-src.zip Developers who wish to contribute to Aejaks development should download this file and the above '-exe' file, and unpack both into the same directory. This package contains source for Java and Tcl files, documentation source, build scripts, library files, icon and image source, Eclipse project and classpath files. Java JDK 1.4 or higher is required to develop Aejaks. http://java.sun.com Ant or Eclipse is require to run the Java source build.xml file. Ant and Eclipse can be downloaded from http://ant.apache.org http://eclipse.org Clcms and Python are required to regenerate the local website & documentation. Clcms and Python can be downloaded from: http://www.jelte.nlnetlabs.nl/Projects/clcms/index.html http://python.org AejaksDemo.war This war is the webserver deployment file containing the Aejaks runtime and all required libraries, along with the 'widget_tour' demo script. Simply deploy this file into your existing Java Servlet engine (e.g., Jetty, Tomcat, Resin, Websphere, Weblogic, Winstone, etc. Java 1.4 or higher is also requried.) Once deployed (and depending on your servlet engine), you should be able to invoke the Aejaks 'widget_tour' demo by opening a browser to http://your-web-server-host/AejaksDemo AejaksDemo.war is a full run-time environment for Aejaks. Update the internal WEB-INF/web.xml file or provide the runtime parameters as outlined in the documentation: http://aejaks.sourceforge.net/Documentation/Running/index.html http://aejaks.sourceforge.net/Documentation/Configuration/index.html REQUIREMENTS: Aejaks requires a Java JRE 1.4 or higher installation. No other external software is required, Aejaks is ready to run. Aejaks includes the Jetty webserver, configured to start on port 8080. DOCUMENTATION: See: ./website/out/index.html This is a local copy of the website, including all documentation to related software. All documentation is also available at: http://aejaks.sf.net QUICK START: You will need Java JDK or JRE 1.4 or higher installed. un-tar or un-zip the '-exe' distribution file: tar zxf aejaks-x.y-exe.tar.gz unzip aejaks-x.y-exe.zip winzip ...etc... Start the Jetty webserver: unix/linux: sh run.sh windows, execute in a Command Prompt window: run.bat Start your web browser and load the index.html page: unix/linux: firefox http://localhost:8080 windows: start http://localhost:8080 Now start exploring the demos! To stop the web server: unix/linux: sh stop.sh windows: ^C (in the Command Prompt window where you started jetty) COPYRIGHT & LICENSE: Aejaks (a.k.a. "Ãjaks") Copyright 2006-2008, Tom Poindexter Aejaks is licensed under the Mozilla Public License 1.1, or the GNU LGPL 2.1. Aejaks includes the following software, please refer to the copyright and license statements for each package in the ./licenses/ directory: Echo2 EchopointNG Jacl, IncrTcl, TJC Jetty JFreeChart Nuvola icons -- Tom Poindexter tpo...@ny... |
From: Patrick F. <fin...@gm...> - 2007-12-08 02:45:41
|
Don't believe so. AFAIK you have to compile. On 07/12/2007, Patnaik, Anjela <APa...@ci...> wrote: > > Hello all, > > Does anyone know if there are downloadable (built) versions of tclblend > for > solaris platform? > > The tcl shell version will be 8.4. > > Thank you! > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > |
From: Patnaik, A. <APa...@ci...> - 2007-12-06 21:51:29
|
Hello all, Does anyone know if there are downloadable (built) versions of tclblend = for solaris platform?=20 The tcl shell version will be 8.4. Thank you! |
From: Tom P. <tpo...@ny...> - 2007-11-09 14:57:50
|
On Thu, Nov 08, 2007 at 02:41:47PM -0500, Justin Ryan wrote: > http://code.google.com/p/expect4j/ > Nice work! -- Tom Poindexter tpo...@ny... |
From: Chet V. <che...@gm...> - 2007-11-09 01:37:23
|
Thanks to everyone for responding. Justin, thanks for the links....the enchanter project looks interesting from our vantage point at first glance. It would be cool if its possible to integrate a Java scripting API to it.(jsr223) Regards, CV On Nov 8, 2007 5:59 PM, Mo DeJong <mo...@mo...> wrote: > > Justin Ryan wrote: > > In the Java space you have a few options for ssh/telnet scripting. The > > cleanest implementation I've seen is enchanter (1). While expectj (2) > > is more compliant with actual expect library. I learned this while > > investigating a expect solution for tcljava, and I also found that my > > best option was to just write one myself which supports not only > > expect in java but also the bindings needed for tcljava. The library > > is called expect4j: > > > > http://code.google.com/p/expect4j/ > > > > expect4j is aimed at supporting the functionality of the C-based > > expect library, started by Don Libes, in java and tcljava. The > > library is written in java and uses a bootstrap class called > > ExpectEmulation of load the relevant bindings into a tcljava Intrep. > > The most important tcl functions have been implement, e.g. expect, > > send, spawn. A full list of supported functions and global variables > > are commented in ExpectEmulation.java. I've successfully ported a > > 100K tcl script based on expect to tcljava, without any changes, by > > just using expect4j. > > > > One of the major limitations is that only ssh and telnet are supported > > by the spawn command. This was done to limit interactions with > > Runtime.exec(), and to keep the library completely in the java space. > > This avoids the need for process control, forking, and PTYs. On the > > otherhand, the Expect4j class can be used for automating any > > InputStream/OutputStream or Socket. One of the unit tests shows how > > to automate the "cmd /c net statistics Workstation" command on > > Windows. For support of ssh/telnet, Jsch is used for ssh and > > commons-net is used for telnet. The expect command can also match > > against many different regexps/strings, unlike the other expect-like > > libraries. ORO is used for the pattern matching. > > > > > > Hi Justin > > Thanks for posting this note, I did not know there was a useful expect > implementation out there > for Jacl. BTW, if you are looking for a home for the project, I really > have no problem with adding > your expect implementation to the standard Jacl distro. Jacl already has > Itcl bundled with it. > There are some issues that would need to be ironed out (license, regexp > impl, and so on) but it should work, > if you are interested. > > cheers > > Mo DeJong > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |
From: Mo D. <mo...@mo...> - 2007-11-08 22:59:09
|
Justin Ryan wrote: > In the Java space you have a few options for ssh/telnet scripting. The > cleanest implementation I've seen is enchanter (1). While expectj (2) > is more compliant with actual expect library. I learned this while > investigating a expect solution for tcljava, and I also found that my > best option was to just write one myself which supports not only > expect in java but also the bindings needed for tcljava. The library > is called expect4j: > > http://code.google.com/p/expect4j/ > > expect4j is aimed at supporting the functionality of the C-based > expect library, started by Don Libes, in java and tcljava. The > library is written in java and uses a bootstrap class called > ExpectEmulation of load the relevant bindings into a tcljava Intrep. > The most important tcl functions have been implement, e.g. expect, > send, spawn. A full list of supported functions and global variables > are commented in ExpectEmulation.java. I've successfully ported a > 100K tcl script based on expect to tcljava, without any changes, by > just using expect4j. > > One of the major limitations is that only ssh and telnet are supported > by the spawn command. This was done to limit interactions with > Runtime.exec(), and to keep the library completely in the java space. > This avoids the need for process control, forking, and PTYs. On the > otherhand, the Expect4j class can be used for automating any > InputStream/OutputStream or Socket. One of the unit tests shows how > to automate the "cmd /c net statistics Workstation" command on > Windows. For support of ssh/telnet, Jsch is used for ssh and > commons-net is used for telnet. The expect command can also match > against many different regexps/strings, unlike the other expect-like > libraries. ORO is used for the pattern matching. > > Hi Justin Thanks for posting this note, I did not know there was a useful expect implementation out there for Jacl. BTW, if you are looking for a home for the project, I really have no problem with adding your expect implementation to the standard Jacl distro. Jacl already has Itcl bundled with it. There are some issues that would need to be ironed out (license, regexp impl, and so on) but it should work, if you are interested. cheers Mo DeJong |
From: Justin R. <ju...@ha...> - 2007-11-08 19:42:10
|
In the Java space you have a few options for ssh/telnet scripting. The cleanest implementation I've seen is enchanter (1). While expectj (2) is more compliant with actual expect library. I learned this while investigating a expect solution for tcljava, and I also found that my best option was to just write one myself which supports not only expect in java but also the bindings needed for tcljava. The library is called expect4j: http://code.google.com/p/expect4j/ expect4j is aimed at supporting the functionality of the C-based expect library, started by Don Libes, in java and tcljava. The library is written in java and uses a bootstrap class called ExpectEmulation of load the relevant bindings into a tcljava Intrep. The most important tcl functions have been implement, e.g. expect, send, spawn. A full list of supported functions and global variables are commented in ExpectEmulation.java. I've successfully ported a 100K tcl script based on expect to tcljava, without any changes, by just using expect4j. One of the major limitations is that only ssh and telnet are supported by the spawn command. This was done to limit interactions with Runtime.exec(), and to keep the library completely in the java space. This avoids the need for process control, forking, and PTYs. On the otherhand, the Expect4j class can be used for automating any InputStream/OutputStream or Socket. One of the unit tests shows how to automate the "cmd /c net statistics Workstation" command on Windows. For support of ssh/telnet, Jsch is used for ssh and commons-net is used for telnet. The expect command can also match against many different regexps/strings, unlike the other expect-like libraries. ORO is used for the pattern matching. The library is commented and unit tests are used to keep the library in check is expect's original behavior. BUT there is little documentation. For me, expect4j saved the day. If anyone is interested in using this library I'd be happy to walk you through it. I'll use that as motivation for writing the documentation. Justin Ryan Halfempty Industries (1) http://code.google.com/p/enchanter/ (2) http://expectj.sourceforge.net/ On 11/8/07, Mo DeJong <mo...@mo...> wrote: > Chet Vora wrote: > > Hi > > > > Sorry if this is a newbie question but I was wondering if there's > > support for Expect scripts. i.e can I run an expect script using the > > Jacl interpreter ? We use expect primarily for network admin tasks > > like login into devices/term servers via telnet/ssh and run commands. > > Any useful pointers would be appreciated. > > > Hi Chet > > There is zero chance of expect working in Jacl. It depends on low level > IO stuff that Java just > does not support. You could use expect in Tcl Blend though. > > Mo DeJong > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |
From: Mo D. <mo...@mo...> - 2007-11-08 17:41:00
|
Chet Vora wrote: > Hi > > Sorry if this is a newbie question but I was wondering if there's > support for Expect scripts. i.e can I run an expect script using the > Jacl interpreter ? We use expect primarily for network admin tasks > like login into devices/term servers via telnet/ssh and run commands. > Any useful pointers would be appreciated. > Hi Chet There is zero chance of expect working in Jacl. It depends on low level IO stuff that Java just does not support. You could use expect in Tcl Blend though. Mo DeJong |
From: D. J. H. <dha...@mi...> - 2007-11-08 16:05:31
|
You definitely would not be able to use the full power of expect from jacl, since that extension does some fairly low-level plumbing with Unix PTY's, forking, and process control. For telnet, you may be able to make socket connections and use a simplified version of expect -- I think I remember seeing some examples on the http://wiki.tcl.tk site. SSH would be harder because you would need to either write your own channel implementation using a pure-Java ssh implementation (like jsch) or do your own tricks with Runtime.exec and piped Input/Output streams and threads. Hope this helps, -=- D. J. Chet Vora wrote: > Sorry if this is a newbie question but I was wondering if there's > support for Expect scripts. i.e can I run an expect script using the > Jacl interpreter ? We use expect primarily for network admin tasks > like login into devices/term servers via telnet/ssh and run commands. > Any useful pointers would be appreciated. > > Thanks in advance, > Chetan Vora > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > |
From: Chet V. <che...@gm...> - 2007-11-08 15:34:59
|
Hi Sorry if this is a newbie question but I was wondering if there's support for Expect scripts. i.e can I run an expect script using the Jacl interpreter ? We use expect primarily for network admin tasks like login into devices/term servers via telnet/ssh and run commands. Any useful pointers would be appreciated. Thanks in advance, Chetan Vora |
From: Mo D. <mo...@mo...> - 2007-10-08 17:46:06
|
rohit wrote: > i'm using jacl 1.3.3, which does not support tcl 8.4 > my jvm is 1.3.1 and hence cant use jacl 1.4 > > is there a version of jacl that supports tcl 8.4 and runs on jdk 1.3.1 ? > Both Jacl 1.3.3 and Jacl 1.4.0 support the same expr commands, so the max() expr function is not supported in either version. cheers Mo |
From: rohit <roh...@ya...> - 2007-10-08 13:08:05
|
i'm using jacl 1.3.3, which does not support tcl 8.4 my jvm is 1.3.1 and hence cant use jacl 1.4 is there a version of jacl that supports tcl 8.4 and runs on jdk 1.3.1 ? going, going, ... gone. Martin Lemburg <mar...@gm...> wrote: Hi, it's relatively easy to tell, where the error's coming from ... in tcl 8.5 there are new expr operators like "min(value1,value2,...,valueN)" and "max(value1,value2,...,valueN). So your jacl distribution, your java generating application uses, is not of this version 8.5. Best regards, Martin --------------------------------- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of rohit Sent: Monday, October 08, 2007 2:40 PM To: tcl...@li... Subject: [tcljava-user] TCL.ERROR : unknown math function "max" good morning all, i'm trying to port an existing application that uses tcl to generate code to a java based application. i have done the same using jacl. one of the old tcl scripts uses a math function "max" and when the old script is called from jacl i get the error : TCL.ERROR : unknown math function "max" any pointers on how to use math function "max", please let me know going, going, ... gone. going, going, ... gone. --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. |
From: Martin L. <mar...@gm...> - 2007-10-08 12:50:50
|
Hi, it's relatively easy to tell, where the error's coming from ... in tcl 8.5 there are new expr operators like "min(value1,value2,...,valueN)" and "max(value1,value2,...,valueN). So your jacl distribution, your java generating application uses, is not of this version 8.5. Best regards, Martin _____ From: tcl...@li... [mailto:tcl...@li...] On Behalf Of rohit Sent: Monday, October 08, 2007 2:40 PM To: tcl...@li... Subject: [tcljava-user] TCL.ERROR : unknown math function "max" good morning all, i'm trying to port an existing application that uses tcl to generate code to a java based application. i have done the same using jacl. one of the old tcl scripts uses a math function "max" and when the old script is called from jacl i get the error : TCL.ERROR : unknown math function "max" any pointers on how to use math function "max", please let me know going, going, ... gone. going, going, ... gone. _____ Be a better Heartthrob. Get <http://us.rd.yahoo.com/evt=48255/*http://answers.yahoo.com/dir/_ylc=X3oDMTI 5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHN sawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433> better relationship answers from someone who knows. Yahoo! Answers - Check it out. |
From: rohit <roh...@ya...> - 2007-10-08 12:40:04
|
good morning all, i'm trying to port an existing application that uses tcl to generate code to a java based application. i have done the same using jacl. one of the old tcl scripts uses a math function "max" and when the old script is called from jacl i get the error : TCL.ERROR : unknown math function "max" any pointers on how to use math function "max", please let me know going, going, ... gone. going, going, ... gone. --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. |