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: "Eric Hudson" <>
Date: Thu, 12 Jan 2006 13:30:20 -0600

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

<*> 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