ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: how to request 7250 execute command from external web

To:
Subject: Re: [ts-7000] Re: how to request 7250 execute command from external web browser?
From: Andrew Bealing <>
Date: Fri, 13 Jan 2006 09:45:59 +1300
PHP is purely for generating web pages, whereas Perl is a wierd (and
wonderful) general-purpose OO programming language.  So one will not
replace the other, though if you know Perl you probably would not need to
bother learning PHP too.


                                                                                
                                                               
                      "chentom60"                                               
                                                               
                      <        To:       
                                                         
      
                      l.com>                   cc:                              
                                                               
                      Sent by:                 Subject:  [ts-7000] Re: how to 
request 7250 execute command from external web browser?          
                                                               
                                                               
                      ps.com                                                    
                                                               
                                                                                
                                                               
                                                                                
                                                               
                      13/01/2006 09:40                                          
                                                               
                      a.m.                                                      
                                                               
                      Please respond to                                         
                                                               
                      ts-7000                                                   
                                                               
                                                                                
                                                               
                                                                                
                                                               




Eric,

Thanks! Could you send it to me at  ?

I don't know Perl yet, but will seriously study since it sounds so
powerful.

How about PHP? do you think PHP will replace Perl?

Thanks a lot!

Tom

--- In  "Eric Hudson" <> wrote:
>
>
>
> Tom,
>
> I have a cgi script (perl) that starts/stops my C program as well
as send it
> commands that in turn does all of the dirty work.
>
> Eric.
>
>
> -----Original Message-----
> From:   On
Behalf Of
> chentom60
> Sent: Thursday, January 12, 2006 1:23 PM
> To: 
> Subject: [ts-7000] Re: how to request 7250 execute command from
external web
> browser?
>
> Thanks Jim,
>
> I know how CGI gets parameters from browser. But do you know how
can
> CGI execute this parameter as a shell command? e.g. if my CGI get
> such an parameter "ls -l" from browser, how do I let it excute ls -
l?
>
>
> Tom
>
> --- In  Jim Jackson <> wrote:
> >
> >
> >
> >
> > On Thu, 12 Jan 2006, chentom60 wrote:
> >
> > > Hi,
> > >
> > > I have a TS-7250 and have put some executibles to change DIO
Port
> pin
> > > High/Low, Turn Red/Green LED on/off etc.
> > >
> > > I am wondering how can I call these functions or shell commands
on
> > > board from a PC web browser. I wrote a html file which can send
> request
> > > to TS7250 web server and wrote a CGI script which can call any
one
> > > function on board. It is successful, however, it seems that CGI
> script
> > > only runs functions embedded in the script. Is it possible that
> CGI
> > > executes any dynamic requests from user? So, users can do some
> tests or
> > > check board status from PC?
> > >
> > > I am thinking a way(not limited to CGI, any method is ok) for
> users to
> > > send requests from web browser(type any function name or just
> shell
> > > command on a text box and press a button to send it to the
> board), then
> > > 7250 executes it and sends information back to browser? Anyone
> can help
> > > me?
> >
> > You can pass paramters to a web page by appending "?" and the
> parameters
> > to the end of the cgi-bin URL. If you make a cgi script that
> executes the
> > parameter given then I think you have what you want.
> > see http://www.unix.org.ua/orelly/perl/learn/ch19_04.htm
> >
> > You also have an ENORMOUS security hole - make sure you are on
> a "safe"
> > network. see http://www.w3.org/Security/Faq/wwwsf4.html
> >
> > cheers
> > Jim
> >
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>







Yahoo! Groups Links










###########################################################################
This e-mail is confidential and may contain information subject to legal 
privilege.  If you are not the intended recipient please advise us of our
error by return e-mail then delete this e-mail and any attached files.  
You may not copy, disclose or use the contents in any way.  

The views expressed in this e-mail may not be those of Gallagher Group 
Ltd or subsidiary companies thereof.
###########################################################################


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU