|
From: dmp <dmp...@gm...> - 2011-04-02 10:32:20
|
Hello Arnulf, I've tried code. Of course works here, too. Time to consider using JTCL. I agree with your idea to write debugscript.tcl using JTCL. It may be better solution. Also opportunity to make JTCL more popular. Probably there should also be prepared separate JTCL plugin for netbeans like jython did it. Thank you very much Lars. It'll be helpfull. Thanks, Michal 2011/4/1 Arnulf Wiedemann <ar...@wi...>: > Hello Lars, > great!! and excellent work! > > I extracted the code with: http://wiki.tcl.tk/28182.code > > @Michal: extracting code from Tcl wiki pages can be done like so: > http://wiki.tcl.tk/28182.code > > did comment out the first block and ran it with a tclsh8.5 starting a > tclsh8.6. > It worked perfect! > >> tclsh8.5 > % source hubs.tcl > % hubs::interp::local_spawn my -prog tclsh8.6 -shake 1 > Hello, I'm linux-19x1.site 8742 /home/arnulf/bin/tclsh8.6 8.6b1.2 > ::my::slave > % ::my::slave eval {package require Itcl} > 4.0b5 > % > > I am pretty sure, we will use that in the project. > And thanks for providing all the wiki entries. > > Arnulf > > Am 01.04.2011 18:19, schrieb Lars Hellström: >> Arnulf Wiedemann skrev 2011-04-01 09.04: >>> > Hello Miachal, >>> > sounds good from my point of view too. I agree on all what you have >>> > written down. Did not have to much time to think about it, as payed work >>> > is waiting. >>> > >>> > I would say: go ahead in that direction and let us see what Lars is >>> > answering, because I am interested on how he is doing that in detail, >>> > for learning how we can use a modified part in our project. >> The code I mentioned can now be found at http://wiki.tcl.tk/28182. >> >> Useful reading is also http://abel.math.umu.se/~lars/tcl/hubs.pdf, but >> bear in mind that the scope of the problem that it set out to address is >> somewhat larger than just controlling a child tclsh, so there are a lot of >> issues considered that you're probably not so interested in. >> >> For a first experiment, you might want to try something like the following: >> >> % hubs::interp::local_spawn my -prog tclsh8.4 -shake 1 >> Hello, I'm nova.local 19741 /usr/bin/tclsh8.4 8.4.19 >> ::my::slave >> % ::my::slave eval {array get tcl_platform} >> osVersion 10.6.0 byteOrder littleEndian tip,268 1 threaded 1 machine i386 >> platform unix os Darwin tip,280 1 user lars wordSize 4 >> % exec ps -p 19741 >> PID TT STAT TIME COMMAND >> 19741 ?? S 0:00.10 tclsh8.4 >> % ::my::slave exit >> % exec ps -p 19741 >> Error: PID TT STAT TIME COMMAND >> child process exited abnormally >> % >> >> (ps exits with a nonzero status, since the process 19741 wasn't around >> anymore.) >> >> Lars Hellström >> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Tcl-gsoc mailing list >> Tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcl-gsoc > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Tcl-gsoc mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-gsoc > |