Group: comp.lang.tcl


Subject: Application design question
From: Jimmy Campbell
Date: 11/26/2007 5:33:02 PM
Hello all. I'm pretty new to programming, but I'm trying to write a small graphical app that uses telnet to run commands on a local server. What would be the best way to do this without using expect? I guess I'm just looking for a general idea of the flow. Basically all that is needed is for the client to login into the server, 'ls' and add the file listing into a listbox, then a file would be selected to telnet to another service "vlc" and run another command. I have looked at tcltelnet, but kind of stumped on where (how) to start. Thank you in advance. -jimmy

Subject: Application design question
From: Synic
Date: 12/2/2007 4:02:40 AM
Jimmy Campbell <jimmyc@srt.com> wrote: > Hello all. I'm pretty new to programming, but I'm trying to write a small > graphical app that uses telnet to run commands > on a local server. What would be the best way to do this without using > expect? If you're new to programming, the last thing you want to do is put hurdles in front of yourself. Expect is simply the best tool for the job and has the best API for this sort of task. I'd caution against telnet though. Ssh instead, if at all possible.

Subject: Application design question
From: Glenn Jackman
Date: 12/2/2007 12:43:26 PM
At 2007-12-01 11:02PM, "Synic" wrote: > Jimmy Campbell <jimmyc@srt.com> wrote: > > Hello all. I'm pretty new to programming, but I'm trying to write a small > > graphical app that uses telnet to run commands > > on a local server. What would be the best way to do this without using > > expect? > > If you're new to programming, the last thing you want to do is put > hurdles in front of yourself. Expect is simply the best tool for > the job and has the best API for this sort of task. See if you have autoexpect installed. That will simplify your life further. -- Glenn Jackman "You can only be young once. But you can always be immature." -- Dave Barry

Subject: Application design question
From: Jimmy Campbell
Date: 12/4/2007 8:45:04 PM
Thanks for the input guys. I've actually started rethinking it, and am just going to use SATGUI from www.satisoft.com . Its a bit easier. "Glenn Jackman" <glennj@ncf.ca> wrote in message news:slrnfl5a3e.qp6.glennj@smeagol.ncf.ca... > At 2007-12-01 11:02PM, "Synic" wrote: >> Jimmy Campbell <jimmyc@srt.com> wrote: >> > Hello all. I'm pretty new to programming, but I'm trying to write a >> > small >> > graphical app that uses telnet to run commands >> > on a local server. What would be the best way to do this without using >> > expect? >> >> If you're new to programming, the last thing you want to do is put >> hurdles in front of yourself. Expect is simply the best tool for >> the job and has the best API for this sort of task. > > See if you have autoexpect installed. That will simplify your life > further. > > -- > Glenn Jackman > "You can only be young once. But you can always be immature." -- Dave > Barry