02:20:03 SWPadnos__ has joined #emc-devel 02:34:27 SWPadnos has quit 03:12:59 SWPadnos__ is now known as SWPadnos 03:39:49 jtr is now known as jtr_away 04:28:07 SWPadnos is now known as SWP_Away 06:31:31 SWPadnos_ has quit 12:09:47 anonimasu has joined #emc-devel 12:10:07 anonimasu has left #emc-devel 20:28:32 rayh has joined #emc-devel 20:52:35 rayh_ has joined #emc-devel 21:01:11 rayh has quit 21:17:45 SWP_Away is now known as SWPadnos 21:32:23 SWPadnos is now known as SWP_Away 22:15:48 logger_devel has joined #emc-devel 22:15:48 topic is: "Welcome to the Enhanced Machine Control development place. | Regular Developers' meetings 24/7 !" 22:15:48 Users on #emc-devel: logger_devel rayh_ SWP_Away alex_joni LawrenceG jtr_away jtr_ cradek @ChanServ 22:20:27 SWP_Away is now known as SWPadnos 22:26:41 I've been trying to get halcmd to "open" in a tcl bidirectional pipe but it isn't having any. 22:27:22 how is this normally done in tcl? 22:27:24 can you do that with any other program? 22:27:31 (or is it normally done in tcl? :) ) 22:27:38 I've got a model built upon bc 22:27:44 the unix calculator. 22:27:53 ok -and that works 22:27:56 ? 22:27:59 yes 22:28:13 send it 2+2 and it returns 4 22:28:27 ok. what halcmd options are you using? 22:28:34 but bc has not prompt like halcmd: 22:28:47 use "-skf" 22:28:55 script mode has no prompt 22:28:56 okay. 22:29:04 I'll try. Thanks. 22:29:15 (k=keep going if there's an error, f=use a file) 22:29:15 I thought that was a bearing company. 22:29:20 so it is ;) 22:29:29 I was using -kf 22:30:09 * rayh_ brb testing. 22:30:11 ok - the -s will prevent the prompt - I put it in for just this situation 22:38:34 still dies. it does pass the first command like newsig MySig1 bit. 22:38:57 but hangs after that now. 22:40:31 hang as in more stuff in = nothing out? 22:53:14 I set the channel for writing "w" rather than "r+" and it seems to be working. 22:53:23 ah -good deal 22:53:31 I do get a response back to standard out 22:53:48 Just have to get it to where it needs to be. 22:53:57 errors only, or other stuff as well? 22:54:00 Thanks 22:54:13 does "rw" work? 23:00:01 -rw :D 23:02:14 CD or DVD? 23:06:36 I'll try that. 23:08:23 or blue ray 23:08:24 No. The possibles are "r" "r+" "w" and "w+" 23:08:25 :D 23:08:36 hm 23:08:38 how fit.. 23:08:59 w is the only one that works. 23:09:28 and that returns to the terminal running the program. 23:09:43 Seems like it is darn close. 23:09:58 there should be some way of opening two pipes then, one for command output and one for response input 23:11:58 are you using "flush"? 23:13:24 you can try using fconfigure to turn off buffering as well 23:13:46 (according to a tcl 8.5 help page at http://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html ) 23:32:47 night all 23:32:53 good night 23:34:04 rayh_ has quit 23:36:29 rayh has joined #emc-devel 23:36:47 that was fun! 23:37:02 I was just going to ask - that wasn't a crash was it? 23:37:27 Nah that was a switch box that went astray. 23:37:33 ah - phew 23:38:01 what was that tcl link again. 23:38:15 http://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html 23:38:20 tnx 23:38:23 sure 23:38:32 the buffering looks like a likely candidate for problems 23:40:08 Right. halcmd does NOT buffer? 23:40:25 or does it buffer by line 23:40:32 no - it's in tcl file handling (or the kernel - not sure) 23:40:52 you can turn it off in tcl (8.5 at least) 23:42:27 buffering may be the problem with the open xxx "r+" version. 23:42:41 it looks like you can issue something like "fconfigure pipe_name -buffering line" to put into line buffer mode (or use none for no buffering) 23:46:02 phone 23:46:09 line buffering is probably best for this application, since there's always a newline after every command or response 23:46:11 ok