On Thu, 12 Jan 2006, chentom60 wrote:
> Eric,
>
> Thanks! Could you send it to me at ?
>
> I don't know Perl yet, but will seriously study since it sounds so
> powerful.
check out the perl "system" and "exec" commands.
>
> 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
>
>
>
>
>
>
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/
|