Thread: [tcljava-user] Using TCL packages in TCL Java
Brought to you by:
mdejong
From: Perry G. <pg...@io...> - 2011-06-29 13:45:38
|
Hello, I am a little new too TCL so I was wondering if someone could help me out and see if this was something that could be done. My group uses IXIA's TCL Automation library: http://www.ixiacom.com/products/display?skey=tcl_api We were wondering if it could be used in a project we have that uses TCL/Java. From my understanding this library is C based. Currently I believe we strictly use Jacl, from some reading online (mostly this post): http://tech.groups.yahoo.com/group/tcljava/message/412 I found that in order to do this we need to use TCL Blend. Does this sound right? Has anyone worked with IXIA automation library and done a similar thing? Thanks for the help --Perry |
From: Ross, B. <Bil...@Ca...> - 2011-06-29 15:36:07
|
We use the Ixia TCL automation library. It uses pure TCL. You should not have to use any java, either tclblend or jacl. Your Ixia support people should be able to help you get it running. There are a few environment variables that need to be set. -----Original Message----- From: Perry Gagne [mailto:pg...@io...] Sent: Wednesday, June 29, 2011 9:27 AM To: tcl...@li... Subject: [tcljava-user] Using TCL packages in TCL Java Hello, I am a little new too TCL so I was wondering if someone could help me out and see if this was something that could be done. My group uses IXIA's TCL Automation library: http://www.ixiacom.com/products/display?skey=tcl_api We were wondering if it could be used in a project we have that uses TCL/Java. From my understanding this library is C based. Currently I believe we strictly use Jacl, from some reading online (mostly this post): http://tech.groups.yahoo.com/group/tcljava/message/412 I found that in order to do this we need to use TCL Blend. Does this sound right? Has anyone worked with IXIA automation library and done a similar thing? Thanks for the help --Perry ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Perry G. <pg...@io...> - 2011-06-29 15:44:40
|
We have it running using regular TCL sh, I was curious if we could interact with it in our scripts that are interpreted by Jacl or somehow interfact with it via Java --Perry On 06/29/2011 11:35 AM, Ross, Bill wrote: > We use the Ixia TCL automation library. > It uses pure TCL. > You should not have to use any java, either tclblend or jacl. > Your Ixia support people should be able to help you get it running. > There are a few environment variables that need to be set. > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 9:27 AM > To: tcl...@li... > Subject: [tcljava-user] Using TCL packages in TCL Java > > Hello, > > I am a little new too TCL so I was wondering if someone could help me > out and see if this was something that could be done. > > My group uses IXIA's TCL Automation library: > > http://www.ixiacom.com/products/display?skey=tcl_api > > We were wondering if it could be used in a project we have that uses > TCL/Java. From my understanding this library is C based. Currently I > believe we strictly use Jacl, from some reading online (mostly this post): > > http://tech.groups.yahoo.com/group/tcljava/message/412 > > I found that in order to do this we need to use TCL Blend. > > Does this sound right? Has anyone worked with IXIA automation library > and done a similar thing? > > Thanks for the help > --Perry > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Ross, B. <Bil...@Ca...> - 2011-06-29 15:51:33
|
We have tclblend added to our tcl environment for another purpose. I am not familiar with jacl. If that is a tcl interpreter inside of java, it might work, you would need to package require the Ixia stuff and make sure the environment variables are correct. -----Original Message----- From: Perry Gagne [mailto:pg...@io...] Sent: Wednesday, June 29, 2011 11:45 AM To: A list for users of tcljava Subject: Re: [tcljava-user] Using TCL packages in TCL Java We have it running using regular TCL sh, I was curious if we could interact with it in our scripts that are interpreted by Jacl or somehow interfact with it via Java --Perry On 06/29/2011 11:35 AM, Ross, Bill wrote: > We use the Ixia TCL automation library. > It uses pure TCL. > You should not have to use any java, either tclblend or jacl. > Your Ixia support people should be able to help you get it running. > There are a few environment variables that need to be set. > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 9:27 AM > To: tcl...@li... > Subject: [tcljava-user] Using TCL packages in TCL Java > > Hello, > > I am a little new too TCL so I was wondering if someone could help me > out and see if this was something that could be done. > > My group uses IXIA's TCL Automation library: > > http://www.ixiacom.com/products/display?skey=tcl_api > > We were wondering if it could be used in a project we have that uses > TCL/Java. From my understanding this library is C based. Currently I > believe we strictly use Jacl, from some reading online (mostly this post): > > http://tech.groups.yahoo.com/group/tcljava/message/412 > > I found that in order to do this we need to use TCL Blend. > > Does this sound right? Has anyone worked with IXIA automation library > and done a similar thing? > > Thanks for the help > --Perry > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Perry G. <pg...@io...> - 2011-06-29 16:06:16
|
I am sure it can interprete the TCL in the IXIA package, but how will it handle the C libraries that they rely on? --Perry On 06/29/2011 11:51 AM, Ross, Bill wrote: > We have tclblend added to our tcl environment for another purpose. > I am not familiar with jacl. > If that is a tcl interpreter inside of java, it might work, you would need to package require the Ixia stuff and make sure the environment variables are correct. > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 11:45 AM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > We have it running using regular TCL sh, I was curious if we could > interact with it in our scripts that are interpreted by Jacl or somehow > interfact with it via Java > --Perry > > On 06/29/2011 11:35 AM, Ross, Bill wrote: >> We use the Ixia TCL automation library. >> It uses pure TCL. >> You should not have to use any java, either tclblend or jacl. >> Your Ixia support people should be able to help you get it running. >> There are a few environment variables that need to be set. >> >> -----Original Message----- >> From: Perry Gagne [mailto:pg...@io...] >> Sent: Wednesday, June 29, 2011 9:27 AM >> To: tcl...@li... >> Subject: [tcljava-user] Using TCL packages in TCL Java >> >> Hello, >> >> I am a little new too TCL so I was wondering if someone could help me >> out and see if this was something that could be done. >> >> My group uses IXIA's TCL Automation library: >> >> http://www.ixiacom.com/products/display?skey=tcl_api >> >> We were wondering if it could be used in a project we have that uses >> TCL/Java. From my understanding this library is C based. Currently I >> believe we strictly use Jacl, from some reading online (mostly this post): >> >> http://tech.groups.yahoo.com/group/tcljava/message/412 >> >> I found that in order to do this we need to use TCL Blend. >> >> Does this sound right? Has anyone worked with IXIA automation library >> and done a similar thing? >> >> Thanks for the help >> --Perry >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: <ph...@hi...> - 2011-06-29 17:09:18
|
It won't. Jacl is Java to Java (as in pure Java). TclBlend allows you to call Java objects from Tcl (C-Code). (E.g. In TclBlend you write package require java which would let you use [java::load -classpath . MyExtInJava]) In Java you can also use TclBlend the other way around. Check the TclBlend.java sample in the distro. If you need Tcl with C-extensions from Java, you'd'use TclBlend. But if you are on Windows, good luck. Kind Regards Philippe Back Helping you improve your way of working High Octane SPRL rue cour Boisacq 101 - 1301 Bierges - Belgium Mob: +32 478 650 140 Web: http://philippeback.eu | Blog: http://philippeback.be Envoyé par mon BlackBerry Wireless Handheld. -----Original Message----- From: Perry Gagne <pg...@io...> Date: Wed, 29 Jun 2011 12:06:08 To: A list for users of tcljava<tcl...@li...> Reply-To: A list for users of tcljava <tcl...@li...> Subject: Re: [tcljava-user] Using TCL packages in TCL Java I am sure it can interprete the TCL in the IXIA package, but how will it handle the C libraries that they rely on? --Perry On 06/29/2011 11:51 AM, Ross, Bill wrote: > We have tclblend added to our tcl environment for another purpose. > I am not familiar with jacl. > If that is a tcl interpreter inside of java, it might work, you would need to package require the Ixia stuff and make sure the environment variables are correct. > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 11:45 AM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > We have it running using regular TCL sh, I was curious if we could > interact with it in our scripts that are interpreted by Jacl or somehow > interfact with it via Java > --Perry > > On 06/29/2011 11:35 AM, Ross, Bill wrote: >> We use the Ixia TCL automation library. >> It uses pure TCL. >> You should not have to use any java, either tclblend or jacl. >> Your Ixia support people should be able to help you get it running. >> There are a few environment variables that need to be set. >> >> -----Original Message----- >> From: Perry Gagne [mailto:pg...@io...] >> Sent: Wednesday, June 29, 2011 9:27 AM >> To: tcl...@li... >> Subject: [tcljava-user] Using TCL packages in TCL Java >> >> Hello, >> >> I am a little new too TCL so I was wondering if someone could help me >> out and see if this was something that could be done. >> >> My group uses IXIA's TCL Automation library: >> >> http://www.ixiacom.com/products/display?skey=tcl_api >> >> We were wondering if it could be used in a project we have that uses >> TCL/Java. From my understanding this library is C based. Currently I >> believe we strictly use Jacl, from some reading online (mostly this post): >> >> http://tech.groups.yahoo.com/group/tcljava/message/412 >> >> I found that in order to do this we need to use TCL Blend. >> >> Does this sound right? Has anyone worked with IXIA automation library >> and done a similar thing? >> >> Thanks for the help >> --Perry >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Johannes13 <joh...@jo...> - 2011-06-29 16:31:30
|
[load] on Jacl can not load c libraries. So, if one of your required packages need a lib written in C, you should use TclBlend. --Johannes ----- Original Message ----- From: "Perry Gagne" <pg...@io...> To: "A list for users of tcljava" <tcl...@li...> Sent: Wednesday, June 29, 2011 5:44 PM Subject: Re: [tcljava-user] Using TCL packages in TCL Java > We have it running using regular TCL sh, I was curious if we could > interact with it in our scripts that are interpreted by Jacl or somehow > interfact with it via Java > --Perry > > On 06/29/2011 11:35 AM, Ross, Bill wrote: >> We use the Ixia TCL automation library. >> It uses pure TCL. >> You should not have to use any java, either tclblend or jacl. >> Your Ixia support people should be able to help you get it running. >> There are a few environment variables that need to be set. >> >> -----Original Message----- >> From: Perry Gagne [mailto:pg...@io...] >> Sent: Wednesday, June 29, 2011 9:27 AM >> To: tcl...@li... >> Subject: [tcljava-user] Using TCL packages in TCL Java >> >> Hello, >> >> I am a little new too TCL so I was wondering if someone could help me >> out and see if this was something that could be done. >> >> My group uses IXIA's TCL Automation library: >> >> http://www.ixiacom.com/products/display?skey=tcl_api >> >> We were wondering if it could be used in a project we have that uses >> TCL/Java. From my understanding this library is C based. Currently I >> believe we strictly use Jacl, from some reading online (mostly this >> post): >> >> http://tech.groups.yahoo.com/group/tcljava/message/412 >> >> I found that in order to do this we need to use TCL Blend. >> >> Does this sound right? Has anyone worked with IXIA automation library >> and done a similar thing? >> >> Thanks for the help >> --Perry >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously >> valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously >> valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Perry G. <pg...@io...> - 2011-06-29 16:42:39
|
Is there any documentation or tutorials for stuff like this, (using the C libraries in TCL). I am not very familiar with JNI . --Perry On 06/29/2011 12:09 PM, Johannes13 wrote: > [load] on Jacl can not load c libraries. So, if one of your required > packages need a lib written in C, you should use TclBlend. > > --Johannes > ----- Original Message ----- > From: "Perry Gagne"<pg...@io...> > To: "A list for users of tcljava"<tcl...@li...> > Sent: Wednesday, June 29, 2011 5:44 PM > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > >> We have it running using regular TCL sh, I was curious if we could >> interact with it in our scripts that are interpreted by Jacl or somehow >> interfact with it via Java >> --Perry >> >> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>> We use the Ixia TCL automation library. >>> It uses pure TCL. >>> You should not have to use any java, either tclblend or jacl. >>> Your Ixia support people should be able to help you get it running. >>> There are a few environment variables that need to be set. >>> >>> -----Original Message----- >>> From: Perry Gagne [mailto:pg...@io...] >>> Sent: Wednesday, June 29, 2011 9:27 AM >>> To: tcl...@li... >>> Subject: [tcljava-user] Using TCL packages in TCL Java >>> >>> Hello, >>> >>> I am a little new too TCL so I was wondering if someone could help me >>> out and see if this was something that could be done. >>> >>> My group uses IXIA's TCL Automation library: >>> >>> http://www.ixiacom.com/products/display?skey=tcl_api >>> >>> We were wondering if it could be used in a project we have that uses >>> TCL/Java. From my understanding this library is C based. Currently I >>> believe we strictly use Jacl, from some reading online (mostly this >>> post): >>> >>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>> >>> I found that in order to do this we need to use TCL Blend. >>> >>> Does this sound right? Has anyone worked with IXIA automation library >>> and done a similar thing? >>> >>> Thanks for the help >>> --Perry >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Perry G. <pg...@io...> - 2011-06-29 16:44:13
|
Correction, I mean for using TclBlend to interface with TCL and C code. --Perry On 06/29/2011 12:42 PM, Perry Gagne wrote: > Is there any documentation or tutorials for stuff like this, (using the > C libraries in TCL). I am not very familiar with JNI . > > --Perry > > On 06/29/2011 12:09 PM, Johannes13 wrote: >> [load] on Jacl can not load c libraries. So, if one of your required >> packages need a lib written in C, you should use TclBlend. >> >> --Johannes >> ----- Original Message ----- >> From: "Perry Gagne"<pg...@io...> >> To: "A list for users of tcljava"<tcl...@li...> >> Sent: Wednesday, June 29, 2011 5:44 PM >> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >> >> >>> We have it running using regular TCL sh, I was curious if we could >>> interact with it in our scripts that are interpreted by Jacl or somehow >>> interfact with it via Java >>> --Perry >>> >>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>> We use the Ixia TCL automation library. >>>> It uses pure TCL. >>>> You should not have to use any java, either tclblend or jacl. >>>> Your Ixia support people should be able to help you get it running. >>>> There are a few environment variables that need to be set. >>>> >>>> -----Original Message----- >>>> From: Perry Gagne [mailto:pg...@io...] >>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>> To: tcl...@li... >>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>> >>>> Hello, >>>> >>>> I am a little new too TCL so I was wondering if someone could help me >>>> out and see if this was something that could be done. >>>> >>>> My group uses IXIA's TCL Automation library: >>>> >>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>> >>>> We were wondering if it could be used in a project we have that uses >>>> TCL/Java. From my understanding this library is C based. Currently I >>>> believe we strictly use Jacl, from some reading online (mostly this >>>> post): >>>> >>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>> >>>> I found that in order to do this we need to use TCL Blend. >>>> >>>> Does this sound right? Has anyone worked with IXIA automation library >>>> and done a similar thing? >>>> >>>> Thanks for the help >>>> --Perry >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Ross, B. <Bil...@Ca...> - 2011-06-29 17:15:28
|
Tclblend is called in using "package require" like any standard tcl module. As far as I know the Ixia tcl stuff does not need to be compiled and I think it is self sufficient, meaning no other code is required. Here is the code I use for loading the packages and setting some variables ###TCL Code to add packages: package require IxTclHal; package require java; set env(CLASSPATH) "/home/bin/jars/xxx.jar"; ### Ixia environment variables set env(TCL_LIB_HOME) "/opt/tcl_Library"; set env(IXIA_VERSION) "5.00.30037"; set env(IXIA_HOME) $env(TCL_LIB_HOME)/lib/ixia; set env(IXIA_LIB) $env(IXIA_HOME)/lib; set env(IXIA_RESULTS_DIR) $env(IXIA_HOME); set env(IXIA_LOGS_DIR) $env(IXIA_HOME); set env(IXIA_TCL_DIR) $env(IXIA_LIB); set env(IXIA_SAMPLES_DIR) $env(IXIA_LIB); set env(IXTCLHAL_LIBRARY) $env(IXIA_LIB)/ixTcl1.0; -----Original Message----- From: Perry Gagne [mailto:pg...@io...] Sent: Wednesday, June 29, 2011 12:44 PM To: A list for users of tcljava Subject: Re: [tcljava-user] Using TCL packages in TCL Java Correction, I mean for using TclBlend to interface with TCL and C code. --Perry On 06/29/2011 12:42 PM, Perry Gagne wrote: > Is there any documentation or tutorials for stuff like this, (using the > C libraries in TCL). I am not very familiar with JNI . > > --Perry > > On 06/29/2011 12:09 PM, Johannes13 wrote: >> [load] on Jacl can not load c libraries. So, if one of your required >> packages need a lib written in C, you should use TclBlend. >> >> --Johannes >> ----- Original Message ----- >> From: "Perry Gagne"<pg...@io...> >> To: "A list for users of tcljava"<tcl...@li...> >> Sent: Wednesday, June 29, 2011 5:44 PM >> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >> >> >>> We have it running using regular TCL sh, I was curious if we could >>> interact with it in our scripts that are interpreted by Jacl or somehow >>> interfact with it via Java >>> --Perry >>> >>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>> We use the Ixia TCL automation library. >>>> It uses pure TCL. >>>> You should not have to use any java, either tclblend or jacl. >>>> Your Ixia support people should be able to help you get it running. >>>> There are a few environment variables that need to be set. >>>> >>>> -----Original Message----- >>>> From: Perry Gagne [mailto:pg...@io...] >>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>> To: tcl...@li... >>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>> >>>> Hello, >>>> >>>> I am a little new too TCL so I was wondering if someone could help me >>>> out and see if this was something that could be done. >>>> >>>> My group uses IXIA's TCL Automation library: >>>> >>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>> >>>> We were wondering if it could be used in a project we have that uses >>>> TCL/Java. From my understanding this library is C based. Currently I >>>> believe we strictly use Jacl, from some reading online (mostly this >>>> post): >>>> >>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>> >>>> I found that in order to do this we need to use TCL Blend. >>>> >>>> Does this sound right? Has anyone worked with IXIA automation library >>>> and done a similar thing? >>>> >>>> Thanks for the help >>>> --Perry >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Perry G. <pg...@io...> - 2011-06-29 17:18:58
|
Excellent, I think this is what I am looking for. To confirm does this let you call Ixia TCL commands from Java and/or vice versa? Have you had any problems with this setup? --Perry On 06/29/2011 01:15 PM, Ross, Bill wrote: > Tclblend is called in using "package require" like any standard tcl module. > As far as I know the Ixia tcl stuff does not need to be compiled and I think it is self sufficient, meaning no other code is required. > > Here is the code I use for loading the packages and setting some variables > > ###TCL Code to add packages: > package require IxTclHal; > package require java; > set env(CLASSPATH) "/home/bin/jars/xxx.jar"; > > ### Ixia environment variables > set env(TCL_LIB_HOME) "/opt/tcl_Library"; > set env(IXIA_VERSION) "5.00.30037"; > set env(IXIA_HOME) $env(TCL_LIB_HOME)/lib/ixia; > set env(IXIA_LIB) $env(IXIA_HOME)/lib; > set env(IXIA_RESULTS_DIR) $env(IXIA_HOME); > set env(IXIA_LOGS_DIR) $env(IXIA_HOME); > set env(IXIA_TCL_DIR) $env(IXIA_LIB); > set env(IXIA_SAMPLES_DIR) $env(IXIA_LIB); > set env(IXTCLHAL_LIBRARY) $env(IXIA_LIB)/ixTcl1.0; > > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 12:44 PM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > Correction, I mean for using TclBlend to interface with TCL and C code. > > --Perry > > On 06/29/2011 12:42 PM, Perry Gagne wrote: >> Is there any documentation or tutorials for stuff like this, (using the >> C libraries in TCL). I am not very familiar with JNI . >> >> --Perry >> >> On 06/29/2011 12:09 PM, Johannes13 wrote: >>> [load] on Jacl can not load c libraries. So, if one of your required >>> packages need a lib written in C, you should use TclBlend. >>> >>> --Johannes >>> ----- Original Message ----- >>> From: "Perry Gagne"<pg...@io...> >>> To: "A list for users of tcljava"<tcl...@li...> >>> Sent: Wednesday, June 29, 2011 5:44 PM >>> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >>> >>> >>>> We have it running using regular TCL sh, I was curious if we could >>>> interact with it in our scripts that are interpreted by Jacl or somehow >>>> interfact with it via Java >>>> --Perry >>>> >>>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>>> We use the Ixia TCL automation library. >>>>> It uses pure TCL. >>>>> You should not have to use any java, either tclblend or jacl. >>>>> Your Ixia support people should be able to help you get it running. >>>>> There are a few environment variables that need to be set. >>>>> >>>>> -----Original Message----- >>>>> From: Perry Gagne [mailto:pg...@io...] >>>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>>> To: tcl...@li... >>>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>>> >>>>> Hello, >>>>> >>>>> I am a little new too TCL so I was wondering if someone could help me >>>>> out and see if this was something that could be done. >>>>> >>>>> My group uses IXIA's TCL Automation library: >>>>> >>>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>>> >>>>> We were wondering if it could be used in a project we have that uses >>>>> TCL/Java. From my understanding this library is C based. Currently I >>>>> believe we strictly use Jacl, from some reading online (mostly this >>>>> post): >>>>> >>>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>>> >>>>> I found that in order to do this we need to use TCL Blend. >>>>> >>>>> Does this sound right? Has anyone worked with IXIA automation library >>>>> and done a similar thing? >>>>> >>>>> Thanks for the help >>>>> --Perry >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Ross, B. <Bil...@Ca...> - 2011-06-29 17:22:07
|
I call java commands from within tcl using tclblend. I call the Ixia commands from within tcl. -----Original Message----- From: Perry Gagne [mailto:pg...@io...] Sent: Wednesday, June 29, 2011 1:19 PM To: A list for users of tcljava Subject: Re: [tcljava-user] Using TCL packages in TCL Java Excellent, I think this is what I am looking for. To confirm does this let you call Ixia TCL commands from Java and/or vice versa? Have you had any problems with this setup? --Perry On 06/29/2011 01:15 PM, Ross, Bill wrote: > Tclblend is called in using "package require" like any standard tcl module. > As far as I know the Ixia tcl stuff does not need to be compiled and I think it is self sufficient, meaning no other code is required. > > Here is the code I use for loading the packages and setting some variables > > ###TCL Code to add packages: > package require IxTclHal; > package require java; > set env(CLASSPATH) "/home/bin/jars/xxx.jar"; > > ### Ixia environment variables > set env(TCL_LIB_HOME) "/opt/tcl_Library"; > set env(IXIA_VERSION) "5.00.30037"; > set env(IXIA_HOME) $env(TCL_LIB_HOME)/lib/ixia; > set env(IXIA_LIB) $env(IXIA_HOME)/lib; > set env(IXIA_RESULTS_DIR) $env(IXIA_HOME); > set env(IXIA_LOGS_DIR) $env(IXIA_HOME); > set env(IXIA_TCL_DIR) $env(IXIA_LIB); > set env(IXIA_SAMPLES_DIR) $env(IXIA_LIB); > set env(IXTCLHAL_LIBRARY) $env(IXIA_LIB)/ixTcl1.0; > > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 12:44 PM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > Correction, I mean for using TclBlend to interface with TCL and C code. > > --Perry > > On 06/29/2011 12:42 PM, Perry Gagne wrote: >> Is there any documentation or tutorials for stuff like this, (using the >> C libraries in TCL). I am not very familiar with JNI . >> >> --Perry >> >> On 06/29/2011 12:09 PM, Johannes13 wrote: >>> [load] on Jacl can not load c libraries. So, if one of your required >>> packages need a lib written in C, you should use TclBlend. >>> >>> --Johannes >>> ----- Original Message ----- >>> From: "Perry Gagne"<pg...@io...> >>> To: "A list for users of tcljava"<tcl...@li...> >>> Sent: Wednesday, June 29, 2011 5:44 PM >>> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >>> >>> >>>> We have it running using regular TCL sh, I was curious if we could >>>> interact with it in our scripts that are interpreted by Jacl or somehow >>>> interfact with it via Java >>>> --Perry >>>> >>>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>>> We use the Ixia TCL automation library. >>>>> It uses pure TCL. >>>>> You should not have to use any java, either tclblend or jacl. >>>>> Your Ixia support people should be able to help you get it running. >>>>> There are a few environment variables that need to be set. >>>>> >>>>> -----Original Message----- >>>>> From: Perry Gagne [mailto:pg...@io...] >>>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>>> To: tcl...@li... >>>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>>> >>>>> Hello, >>>>> >>>>> I am a little new too TCL so I was wondering if someone could help me >>>>> out and see if this was something that could be done. >>>>> >>>>> My group uses IXIA's TCL Automation library: >>>>> >>>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>>> >>>>> We were wondering if it could be used in a project we have that uses >>>>> TCL/Java. From my understanding this library is C based. Currently I >>>>> believe we strictly use Jacl, from some reading online (mostly this >>>>> post): >>>>> >>>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>>> >>>>> I found that in order to do this we need to use TCL Blend. >>>>> >>>>> Does this sound right? Has anyone worked with IXIA automation library >>>>> and done a similar thing? >>>>> >>>>> Thanks for the help >>>>> --Perry >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Perry G. <pg...@io...> - 2011-06-29 17:25:55
|
I see, so you have TCL scripts that interact with Java and Ixia. Do you know if I can write Java programs that call TCL scripts that interact with Ixia? Most of the docs I have read on TCL Blend only talk about TCL talking to Java, but not the other way around. Thanks for your help. --Perry On 06/29/2011 01:21 PM, Ross, Bill wrote: > I call java commands from within tcl using tclblend. > I call the Ixia commands from within tcl. > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 1:19 PM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > Excellent, I think this is what I am looking for. > > To confirm does this let you call Ixia TCL commands from Java and/or > vice versa? Have you had any problems with this setup? > > --Perry > > On 06/29/2011 01:15 PM, Ross, Bill wrote: >> Tclblend is called in using "package require" like any standard tcl module. >> As far as I know the Ixia tcl stuff does not need to be compiled and I think it is self sufficient, meaning no other code is required. >> >> Here is the code I use for loading the packages and setting some variables >> >> ###TCL Code to add packages: >> package require IxTclHal; >> package require java; >> set env(CLASSPATH) "/home/bin/jars/xxx.jar"; >> >> ### Ixia environment variables >> set env(TCL_LIB_HOME) "/opt/tcl_Library"; >> set env(IXIA_VERSION) "5.00.30037"; >> set env(IXIA_HOME) $env(TCL_LIB_HOME)/lib/ixia; >> set env(IXIA_LIB) $env(IXIA_HOME)/lib; >> set env(IXIA_RESULTS_DIR) $env(IXIA_HOME); >> set env(IXIA_LOGS_DIR) $env(IXIA_HOME); >> set env(IXIA_TCL_DIR) $env(IXIA_LIB); >> set env(IXIA_SAMPLES_DIR) $env(IXIA_LIB); >> set env(IXTCLHAL_LIBRARY) $env(IXIA_LIB)/ixTcl1.0; >> >> >> -----Original Message----- >> From: Perry Gagne [mailto:pg...@io...] >> Sent: Wednesday, June 29, 2011 12:44 PM >> To: A list for users of tcljava >> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >> >> Correction, I mean for using TclBlend to interface with TCL and C code. >> >> --Perry >> >> On 06/29/2011 12:42 PM, Perry Gagne wrote: >>> Is there any documentation or tutorials for stuff like this, (using the >>> C libraries in TCL). I am not very familiar with JNI . >>> >>> --Perry >>> >>> On 06/29/2011 12:09 PM, Johannes13 wrote: >>>> [load] on Jacl can not load c libraries. So, if one of your required >>>> packages need a lib written in C, you should use TclBlend. >>>> >>>> --Johannes >>>> ----- Original Message ----- >>>> From: "Perry Gagne"<pg...@io...> >>>> To: "A list for users of tcljava"<tcl...@li...> >>>> Sent: Wednesday, June 29, 2011 5:44 PM >>>> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >>>> >>>> >>>>> We have it running using regular TCL sh, I was curious if we could >>>>> interact with it in our scripts that are interpreted by Jacl or somehow >>>>> interfact with it via Java >>>>> --Perry >>>>> >>>>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>>>> We use the Ixia TCL automation library. >>>>>> It uses pure TCL. >>>>>> You should not have to use any java, either tclblend or jacl. >>>>>> Your Ixia support people should be able to help you get it running. >>>>>> There are a few environment variables that need to be set. >>>>>> >>>>>> -----Original Message----- >>>>>> From: Perry Gagne [mailto:pg...@io...] >>>>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>>>> To: tcl...@li... >>>>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>>>> >>>>>> Hello, >>>>>> >>>>>> I am a little new too TCL so I was wondering if someone could help me >>>>>> out and see if this was something that could be done. >>>>>> >>>>>> My group uses IXIA's TCL Automation library: >>>>>> >>>>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>>>> >>>>>> We were wondering if it could be used in a project we have that uses >>>>>> TCL/Java. From my understanding this library is C based. Currently I >>>>>> believe we strictly use Jacl, from some reading online (mostly this >>>>>> post): >>>>>> >>>>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>>>> >>>>>> I found that in order to do this we need to use TCL Blend. >>>>>> >>>>>> Does this sound right? Has anyone worked with IXIA automation library >>>>>> and done a similar thing? >>>>>> >>>>>> Thanks for the help >>>>>> --Perry >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All of the data generated in your IT infrastructure is seriously >>>>>> valuable. >>>>>> Why? It contains a definitive record of application performance, security >>>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>>> sense of it. IT sense. And common sense. >>>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>>> _______________________________________________ >>>>>> tcljava-user mailing list >>>>>> tcl...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All of the data generated in your IT infrastructure is seriously >>>>>> valuable. >>>>>> Why? It contains a definitive record of application performance, security >>>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>>> sense of it. IT sense. And common sense. >>>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>>> _______________________________________________ >>>>>> tcljava-user mailing list >>>>>> tcl...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: <ph...@hi...> - 2011-06-29 17:31:01
|
The other way around works with tclblend. There is a sample in the doc. Envoyé par mon BlackBerry Wireless Handheld. -----Original Message----- From: Perry Gagne <pg...@io...> Date: Wed, 29 Jun 2011 13:25:47 To: A list for users of tcljava<tcl...@li...> Reply-To: A list for users of tcljava <tcl...@li...> Subject: Re: [tcljava-user] Using TCL packages in TCL Java I see, so you have TCL scripts that interact with Java and Ixia. Do you know if I can write Java programs that call TCL scripts that interact with Ixia? Most of the docs I have read on TCL Blend only talk about TCL talking to Java, but not the other way around. Thanks for your help. --Perry On 06/29/2011 01:21 PM, Ross, Bill wrote: > I call java commands from within tcl using tclblend. > I call the Ixia commands from within tcl. > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 1:19 PM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > Excellent, I think this is what I am looking for. > > To confirm does this let you call Ixia TCL commands from Java and/or > vice versa? Have you had any problems with this setup? > > --Perry > > On 06/29/2011 01:15 PM, Ross, Bill wrote: >> Tclblend is called in using "package require" like any standard tcl module. >> As far as I know the Ixia tcl stuff does not need to be compiled and I think it is self sufficient, meaning no other code is required. >> >> Here is the code I use for loading the packages and setting some variables >> >> ###TCL Code to add packages: >> package require IxTclHal; >> package require java; >> set env(CLASSPATH) "/home/bin/jars/xxx.jar"; >> >> ### Ixia environment variables >> set env(TCL_LIB_HOME) "/opt/tcl_Library"; >> set env(IXIA_VERSION) "5.00.30037"; >> set env(IXIA_HOME) $env(TCL_LIB_HOME)/lib/ixia; >> set env(IXIA_LIB) $env(IXIA_HOME)/lib; >> set env(IXIA_RESULTS_DIR) $env(IXIA_HOME); >> set env(IXIA_LOGS_DIR) $env(IXIA_HOME); >> set env(IXIA_TCL_DIR) $env(IXIA_LIB); >> set env(IXIA_SAMPLES_DIR) $env(IXIA_LIB); >> set env(IXTCLHAL_LIBRARY) $env(IXIA_LIB)/ixTcl1.0; >> >> >> -----Original Message----- >> From: Perry Gagne [mailto:pg...@io...] >> Sent: Wednesday, June 29, 2011 12:44 PM >> To: A list for users of tcljava >> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >> >> Correction, I mean for using TclBlend to interface with TCL and C code. >> >> --Perry >> >> On 06/29/2011 12:42 PM, Perry Gagne wrote: >>> Is there any documentation or tutorials for stuff like this, (using the >>> C libraries in TCL). I am not very familiar with JNI . >>> >>> --Perry >>> >>> On 06/29/2011 12:09 PM, Johannes13 wrote: >>>> [load] on Jacl can not load c libraries. So, if one of your required >>>> packages need a lib written in C, you should use TclBlend. >>>> >>>> --Johannes >>>> ----- Original Message ----- >>>> From: "Perry Gagne"<pg...@io...> >>>> To: "A list for users of tcljava"<tcl...@li...> >>>> Sent: Wednesday, June 29, 2011 5:44 PM >>>> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >>>> >>>> >>>>> We have it running using regular TCL sh, I was curious if we could >>>>> interact with it in our scripts that are interpreted by Jacl or somehow >>>>> interfact with it via Java >>>>> --Perry >>>>> >>>>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>>>> We use the Ixia TCL automation library. >>>>>> It uses pure TCL. >>>>>> You should not have to use any java, either tclblend or jacl. >>>>>> Your Ixia support people should be able to help you get it running. >>>>>> There are a few environment variables that need to be set. >>>>>> >>>>>> -----Original Message----- >>>>>> From: Perry Gagne [mailto:pg...@io...] >>>>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>>>> To: tcl...@li... >>>>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>>>> >>>>>> Hello, >>>>>> >>>>>> I am a little new too TCL so I was wondering if someone could help me >>>>>> out and see if this was something that could be done. >>>>>> >>>>>> My group uses IXIA's TCL Automation library: >>>>>> >>>>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>>>> >>>>>> We were wondering if it could be used in a project we have that uses >>>>>> TCL/Java. From my understanding this library is C based. Currently I >>>>>> believe we strictly use Jacl, from some reading online (mostly this >>>>>> post): >>>>>> >>>>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>>>> >>>>>> I found that in order to do this we need to use TCL Blend. >>>>>> >>>>>> Does this sound right? Has anyone worked with IXIA automation library >>>>>> and done a similar thing? >>>>>> >>>>>> Thanks for the help >>>>>> --Perry >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All of the data generated in your IT infrastructure is seriously >>>>>> valuable. >>>>>> Why? It contains a definitive record of application performance, security >>>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>>> sense of it. IT sense. And common sense. >>>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>>> _______________________________________________ >>>>>> tcljava-user mailing list >>>>>> tcl...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All of the data generated in your IT infrastructure is seriously >>>>>> valuable. >>>>>> Why? It contains a definitive record of application performance, security >>>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>>> sense of it. IT sense. And common sense. >>>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>>> _______________________________________________ >>>>>> tcljava-user mailing list >>>>>> tcl...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: <ph...@hi...> - 2011-06-29 16:02:08
|
Tclblend. Jacl is Tcl coded in Java. Kind Regards Philippe Back Helping you improve your way of working High Octane SPRL rue cour Boisacq 101 - 1301 Bierges - Belgium Mob: +32 478 650 140 Web: http://philippeback.eu | Blog: http://philippeback.be Envoyé par mon BlackBerry Wireless Handheld. -----Original Message----- From: "Ross, Bill" <Bil...@Ca...> Date: Wed, 29 Jun 2011 15:35:51 To: A list for users of tcljava<tcl...@li...> Reply-To: A list for users of tcljava <tcl...@li...> Subject: Re: [tcljava-user] Using TCL packages in TCL Java We use the Ixia TCL automation library. It uses pure TCL. You should not have to use any java, either tclblend or jacl. Your Ixia support people should be able to help you get it running. There are a few environment variables that need to be set. -----Original Message----- From: Perry Gagne [mailto:pg...@io...] Sent: Wednesday, June 29, 2011 9:27 AM To: tcl...@li... Subject: [tcljava-user] Using TCL packages in TCL Java Hello, I am a little new too TCL so I was wondering if someone could help me out and see if this was something that could be done. My group uses IXIA's TCL Automation library: http://www.ixiacom.com/products/display?skey=tcl_api We were wondering if it could be used in a project we have that uses TCL/Java. From my understanding this library is C based. Currently I believe we strictly use Jacl, from some reading online (mostly this post): http://tech.groups.yahoo.com/group/tcljava/message/412 I found that in order to do this we need to use TCL Blend. Does this sound right? Has anyone worked with IXIA automation library and done a similar thing? Thanks for the help --Perry ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |