Thread: [tcljava-user] Suitability of Tcl Blend
Brought to you by:
mdejong
From: Seamus M. <sea...@ho...> - 2009-08-28 10:02:29
|
Hi, Just wondering if anyone can help.. I would like to know if TclBlend is right for me. We have a test framework in Java and would like to directly call legacy TCL scripts. These scripts include packages like Expect so I am not sure that JACL is suitable. That’s why I’m looking at TclBlend. I see that it’s possible to call java directly from TCL using “package require java” e.g. java::import java.net.InetAddress. But is it possible to carry out standard TCL commands from JAVA? One thing I see is that I could use tcl.lang.evalFile to run a tcl script from java but I have a few queries.a) Can I pass arguments to the script?b) Can the Tcl script include Expect? If all else fails, I realise that I can call the tcl script directly as I would an executable from JAVA. Any help/suggestions would be greatly appreciated. Seamy _________________________________________________________________ Windows Live Messenger: Celebrate 10 amazing years with free winks and emoticons. http://clk.atdmt.com/UKM/go/157562755/direct/01/ |
From: Tom P. <tpo...@ny...> - 2009-08-28 15:38:52
|
On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > We have a test > framework in Java and would like to directly call legacy TCL scripts. These scripts include packages like Expect so > I am not sure that JACL is suitable. That?s why I?m looking at TclBlend. I see that it?s possible to call java directly > from TCL using ?package require java? e.g. java::import java.net.InetAddress. But is it possible to carry out standard TCL > commands from JAVA? I don't use TclBlend, so I can't comment on its suitability for you. Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts to interact with Java objects. Jacl is certainly quite easy to integrate into Java. Expect has been ported to run in Jacl, so it likely depends on which other extensions your Tcl scripts use. Tcl-only extensions may or may not work, depending mostly on the Tcl version for which any particular extension was written. Any extension using the 'fileevent' command won't work in Jacl (yet!) See: http://code.google.com/p/expect4j/ -- Tom Poindexter tpo...@ny... |
From: Justin R. <ju...@ha...> - 2009-08-28 18:17:37
|
People are still talking about expect4j! Sent from my iPhone On Aug 28, 2009, at 11:38 AM, Tom Poindexter <tpo...@ny...> wrote: > On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: >> We have a test >> framework in Java and would like to directly call legacy TCL >> scripts. These scripts include packages like Expect so >> I am not sure that JACL is suitable. That?s why I?m looking at >> TclBlend. I see that it?s possible to call java directly >> from TCL using ?package require java? e.g. java::import >> java.net.InetAddress. But is it possible to carry out standard TCL >> commands from JAVA? > > I don't use TclBlend, so I can't comment on its suitability for you. > Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts > to interact with Java objects. > > Jacl is certainly quite easy to integrate into Java. Expect has been > ported to run in Jacl, so it likely depends on which other extensions > your Tcl scripts use. Tcl-only extensions may or may not work, > depending > mostly on the Tcl version for which any particular extension was > written. > Any extension using the 'fileevent' command won't work in Jacl (yet!) > > See: http://code.google.com/p/expect4j/ > > -- > Tom Poindexter > tpo...@ny... > > --- > --- > --- > --------------------------------------------------------------------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Seamus M. <sea...@ho...> - 2009-08-31 11:38:51
|
Thanx Tom, I tried this and expect4j certainly works a treat. Unfort I have ran into trouble as I now need to require other packages, to talk to a piece of Spirent Test Kit, which rely on a particular tcl version, and features which have not been implemented in JACL. Going to give TCLBlend ago now. Cheers Again > Date: Fri, 28 Aug 2009 09:38:31 -0600 > From: tpo...@ny... > To: tcl...@li... > Subject: Re: [tcljava-user] Suitability of Tcl Blend > > On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > > We have a test > > framework in Java and would like to directly call legacy TCL scripts. These scripts include packages like Expect so > > I am not sure that JACL is suitable. That?s why I?m looking at TclBlend. I see that it?s possible to call java directly > > from TCL using ?package require java? e.g. java::import java.net.InetAddress. But is it possible to carry out standard TCL > > commands from JAVA? > > I don't use TclBlend, so I can't comment on its suitability for you. > Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts > to interact with Java objects. > > Jacl is certainly quite easy to integrate into Java. Expect has been > ported to run in Jacl, so it likely depends on which other extensions > your Tcl scripts use. Tcl-only extensions may or may not work, depending > mostly on the Tcl version for which any particular extension was written. > Any extension using the 'fileevent' command won't work in Jacl (yet!) > > See: http://code.google.com/p/expect4j/ > > -- > Tom Poindexter > tpo...@ny... > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user _________________________________________________________________ View your other email accounts from your Hotmail inbox. Add them now. http://clk.atdmt.com/UKM/go/167688463/direct/01/ |
From: R. S. <rs...@gm...> - 2009-08-31 17:10:36
|
Seamus: What exactly features are not implemented in JACL that you need ? I'm modernizing JACL, now. I'm bringing JACL to Tcl8.4 level. More details at http://wiki.tcl.tk/23812 Regards, Radek Seamus McKenna pisze: > Thanx Tom, > > I tried this and expect4j certainly works a treat. Unfort I have ran > into trouble as I now need to require other packages, to talk to a > piece of Spirent Test Kit, which rely on a particular tcl version, and > features which have not been implemented in JACL. > > Going to give TCLBlend ago now. > > Cheers Again > > > Date: Fri, 28 Aug 2009 09:38:31 -0600 > > From: tpo...@ny... > > To: tcl...@li... > > Subject: Re: [tcljava-user] Suitability of Tcl Blend > > > > On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > > > We have a test > > > framework in Java and would like to directly call legacy TCL > scripts. These scripts include packages like Expect so > > > I am not sure that JACL is suitable. That?s why I?m looking at > TclBlend. I see that it?s possible to call java directly > > > from TCL using ?package require java? e.g. java::import > java.net.InetAddress. But is it possible to carry out standard TCL > > > commands from JAVA? > > > > I don't use TclBlend, so I can't comment on its suitability for you. > > Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts > > to interact with Java objects. > > > > Jacl is certainly quite easy to integrate into Java. Expect has been > > ported to run in Jacl, so it likely depends on which other extensions > > your Tcl scripts use. Tcl-only extensions may or may not work, > depending > > mostly on the Tcl version for which any particular extension was > written. > > Any extension using the 'fileevent' command won't work in Jacl (yet!) > > > > See: http://code.google.com/p/expect4j/ > > > > -- > > Tom Poindexter > > tpo...@ny... > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > tcljava-user mailing list > > tcl...@li... > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------ > View your other email accounts from your Hotmail inbox. Add them now. > <http://clk.atdmt.com/UKM/go/167688463/direct/01/> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ------------------------------------------------------------------------ > > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |
From: Patrick F. <fin...@gm...> - 2009-09-01 07:30:43
|
Most Tcl packages/extensions are, like Tcl itself, written in C not Java and and therefore are not available under Jacl unless the package owners are prepared to rewrite the code in Java and maintain two development streams which is a real headache. Only packages/extensions written in Java or pure Tcl can be used with Jacl one example being Tcllib. http://tcllib.sourceforge.net/ 2009/8/31 Radosław Szulgo <rs...@gm...> > Seamus: What exactly features are not implemented in JACL that you need > ? I'm modernizing JACL, now. I'm bringing JACL to Tcl8.4 level. > More details at http://wiki.tcl.tk/23812 > > Regards, > Radek > > Seamus McKenna pisze: > > Thanx Tom, > > > > I tried this and expect4j certainly works a treat. Unfort I have ran > > into trouble as I now need to require other packages, to talk to a > > piece of Spirent Test Kit, which rely on a particular tcl version, and > > features which have not been implemented in JACL. > > > > Going to give TCLBlend ago now. > > > > Cheers Again > > > > > Date: Fri, 28 Aug 2009 09:38:31 -0600 > > > From: tpo...@ny... > > > To: tcl...@li... > > > Subject: Re: [tcljava-user] Suitability of Tcl Blend > > > > > > On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > > > > We have a test > > > > framework in Java and would like to directly call legacy TCL > > scripts. These scripts include packages like Expect so > > > > I am not sure that JACL is suitable. That?s why I?m looking at > > TclBlend. I see that it?s possible to call java directly > > > > from TCL using ?package require java? e.g. java::import > > java.net.InetAddress. But is it possible to carry out standard TCL > > > > commands from JAVA? > > > > > > I don't use TclBlend, so I can't comment on its suitability for you. > > > Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts > > > to interact with Java objects. > > > > > > Jacl is certainly quite easy to integrate into Java. Expect has been > > > ported to run in Jacl, so it likely depends on which other extensions > > > your Tcl scripts use. Tcl-only extensions may or may not work, > > depending > > > mostly on the Tcl version for which any particular extension was > > written. > > > Any extension using the 'fileevent' command won't work in Jacl (yet!) > > > > > > See: http://code.google.com/p/expect4j/ > > > > > > -- > > > Tom Poindexter > > > tpo...@ny... > > > > > > > > > ------------------------------------------------------------------------------ > > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > tcljava-user mailing list > > > tcl...@li... > > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > ------------------------------------------------------------------------ > > View your other email accounts from your Hotmail inbox. Add them now. > > <http://clk.atdmt.com/UKM/go/167688463/direct/01/> > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > tcljava-user mailing list > > tcl...@li... > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > -- PATRICK FINNEGAN ================ MB: +447939182261 PH: +44(0)1603 848950 FX: +44-160-320-8321 http://www.linkedin.com/in/medidisksolutions Medidisk Solutions Ltd C/O SPB Accountants 409 High Road Willesden London NW10 2JN Co. No. 3549668 Vat. No. 893627969 |
From: Patrick F. <fin...@gm...> - 2009-09-01 12:53:01
|
This is a list of the pure Tcl packages in Tcllib that should in theory work with an Tcl 8.4 compatible Jacl implementation. http://docs.activestate.com/activetcl/8.4/tcllib/toc.html On the other hand the tclx extension won't work because it's written in C. http://docs.activestate.com/activetcl/8.4/tclx/TclX.n.html 2009/8/31 Radosław Szulgo <rs...@gm...> > Seamus: What exactly features are not implemented in JACL that you need > ? I'm modernizing JACL, now. I'm bringing JACL to Tcl8.4 level. > More details at http://wiki.tcl.tk/23812 > > Regards, > Radek > > Seamus McKenna pisze: > > Thanx Tom, > > > > I tried this and expect4j certainly works a treat. Unfort I have ran > > into trouble as I now need to require other packages, to talk to a > > piece of Spirent Test Kit, which rely on a particular tcl version, and > > features which have not been implemented in JACL. > > > > Going to give TCLBlend ago now. > > > > Cheers Again > > > > > Date: Fri, 28 Aug 2009 09:38:31 -0600 > > > From: tpo...@ny... > > > To: tcl...@li... > > > Subject: Re: [tcljava-user] Suitability of Tcl Blend > > > > > > On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > > > > We have a test > > > > framework in Java and would like to directly call legacy TCL > > scripts. These scripts include packages like Expect so > > > > I am not sure that JACL is suitable. That?s why I?m looking at > > TclBlend. I see that it?s possible to call java directly > > > > from TCL using ?package require java? e.g. java::import > > java.net.InetAddress. But is it possible to carry out standard TCL > > > > commands from JAVA? > > > > > > I don't use TclBlend, so I can't comment on its suitability for you. > > > Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts > > > to interact with Java objects. > > > > > > Jacl is certainly quite easy to integrate into Java. Expect has been > > > ported to run in Jacl, so it likely depends on which other extensions > > > your Tcl scripts use. Tcl-only extensions may or may not work, > > depending > > > mostly on the Tcl version for which any particular extension was > > written. > > > Any extension using the 'fileevent' command won't work in Jacl (yet!) > > > > > > See: http://code.google.com/p/expect4j/ > > > > > > -- > > > Tom Poindexter > > > tpo...@ny... > > > > > > > > > ------------------------------------------------------------------------------ > > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > tcljava-user mailing list > > > tcl...@li... > > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > ------------------------------------------------------------------------ > > View your other email accounts from your Hotmail inbox. Add them now. > > <http://clk.atdmt.com/UKM/go/167688463/direct/01/> > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > tcljava-user mailing list > > tcl...@li... > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > -- PATRICK FINNEGAN ================ MB: +447939182261 PH: +44(0)1603 848950 FX: +44-160-320-8321 http://www.linkedin.com/in/medidisksolutions Medidisk Solutions Ltd C/O SPB Accountants 409 High Road Willesden London NW10 2JN Co. No. 3549668 Vat. No. 893627969 |
From: Seamus M. <sea...@ho...> - 2009-09-03 19:56:41
|
Radek, Sorry, I had read somewhere that the socket feature had not been implemented in JACL but I believe it now is. Tcl Blend is more suited in my situation due to the number of external packages that I load in. E.g GPIB Thanks for your reply. Seamus > Date: Mon, 31 Aug 2009 19:10:21 +0200 > From: rs...@gm... > To: tcl...@li... > Subject: Re: [tcljava-user] Suitability of Tcl Blend > > Seamus: What exactly features are not implemented in JACL that you need > ? I'm modernizing JACL, now. I'm bringing JACL to Tcl8.4 level. > More details at http://wiki.tcl.tk/23812 > > Regards, > Radek > > Seamus McKenna pisze: > > Thanx Tom, > > > > I tried this and expect4j certainly works a treat. Unfort I have ran > > into trouble as I now need to require other packages, to talk to a > > piece of Spirent Test Kit, which rely on a particular tcl version, and > > features which have not been implemented in JACL. > > > > Going to give TCLBlend ago now. > > > > Cheers Again > > > > > Date: Fri, 28 Aug 2009 09:38:31 -0600 > > > From: tpo...@ny... > > > To: tcl...@li... > > > Subject: Re: [tcljava-user] Suitability of Tcl Blend > > > > > > On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > > > > We have a test > > > > framework in Java and would like to directly call legacy TCL > > scripts. These scripts include packages like Expect so > > > > I am not sure that JACL is suitable. That?s why I?m looking at > > TclBlend. I see that it?s possible to call java directly > > > > from TCL using ?package require java? e.g. java::import > > java.net.InetAddress. But is it possible to carry out standard TCL > > > > commands from JAVA? > > > > > > I don't use TclBlend, so I can't comment on its suitability for you. > > > Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts > > > to interact with Java objects. > > > > > > Jacl is certainly quite easy to integrate into Java. Expect has been > > > ported to run in Jacl, so it likely depends on which other extensions > > > your Tcl scripts use. Tcl-only extensions may or may not work, > > depending > > > mostly on the Tcl version for which any particular extension was > > written. > > > Any extension using the 'fileevent' command won't work in Jacl (yet!) > > > > > > See: http://code.google.com/p/expect4j/ > > > > > > -- > > > Tom Poindexter > > > tpo...@ny... > > > > > > > > ------------------------------------------------------------------------------ > > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > tcljava-user mailing list > > > tcl...@li... > > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > ------------------------------------------------------------------------ > > View your other email accounts from your Hotmail inbox. Add them now. > > <http://clk.atdmt.com/UKM/go/167688463/direct/01/> > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > tcljava-user mailing list > > tcl...@li... > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user _________________________________________________________________ Learn how to add other email accounts to Hotmail in 3 easy steps. http://clk.atdmt.com/UKM/go/167688463/direct/01/ |