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