[Bulk] Re: [Techtalk] gui help cross platform

Helen hrosseau at rogers.com
Thu May 25 23:32:43 EST 2006


Your project sounds pretty interesting having an intelligent home.

You put your finger on one of the problems.  I don't have a server only a
laptop running winxp.  I have added cygwin, perl and tk/tcl to the laptop.
I have created the telnet scripts in expect.  Now I am looking for a method
to bring up and display the shell output.  They would like this to be via an
html web page. I have been searching for a method to embed the shell.

Helen

----- Original Message ----- 
From: "Fredrik Wahlberg" <wahlberg at linux.se>
To: <techtalk at linuxchix.org>
Sent: Thursday, May 25, 2006 7:55 AM
Subject: [Bulk] Re: [Techtalk] gui help cross platform


> Hi
>
> If I understand you correctly (please correct me if I'm wrong) you need
> a button on a web page that calls a script and then presents the results.
>
> I've done a similar application once. A test web page where you clicked
> a button an a light switch went on or off. It also said if the light
> were on or off at the moment. It was for a demo of an "intelligent
> home", we built the coolest doll house for it.
>
> Anyway, I used tcl as a cgi script. I set up a web server on my
> workstation and when someone clicked the button (in an ordinary html
> form) it called my cgi script. The script then called (through telnet)
> an other computer who controlled the I/O for the lights in the doll
> house. The cgi script then returned a web page to the user.
>
> When getting a cgi script to return a web page you simply do as if you
> would print stuff to the screen, but instead of just printing ordinary
> messages you need the print html (so the browser can understand it).
>
> This solution requires the use of a web server though.
>
> Hope I've been helpfull. I'd be happy to answer if you have any more
> questions.
>
> Fredrik
>
> > Hi  all
> > First, I'll state I am not a programmer and have been assigned this
project as a challenge.  I have been working at it for a month and I have
one more to go.
> >
> > I am trying to build a web based application that will telnet into a
terminal,  query the terminal and then spit the results out to a web page.
This is supposed to end up being a test tool for our technicians.  I
originally thought I would be using linux or unix.  I have been informed I
need to be able to do this on a windows based laptop instead.  I have
installed cygwin, perl, tk/tcl and expect on the laptop.
> > I have written the scripts in expect and tested them and they work fine.
> >
> > The problem where I need help is trying to get the expect script to be
activated by a gui button and the results spit back out to a gui. I have
asked some of the young programmers in my group if they know how, and the
answer is no.  They say it should be possible but they have never done this.
Does anyone know where I can find some information or examples.  I also gave
it a shot in visual basic, but my knowledge of that is low to none and I
can't find a telnet object anywhere.
> >
> > I am really grasping at straws.  Panic hasn't set in yet.
> >
> > Helen
> > _______________________________________________
> > Techtalk mailing list
> > Techtalk at linuxchix.org
> > http://linuxchix.org/cgi-bin/mailman/listinfo/techtalk
> >
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://linuxchix.org/cgi-bin/mailman/listinfo/techtalk



More information about the Techtalk mailing list