Better use CGI with suid-bit on IMHO, writing to /proc files generally requires super-user rights, and running Apache as root is bad.
On Sat, 19 Jun 2010 13:42:06 -0700, Sean McGrath <[email protected]> wrote: > Using Apache SSI you can write > <!--#exec cmd="echo 1> .... " --> > on your web page. No script needed. > > William Estrada wrote: >> You could write a simple php or bash script. >> >> >> [email protected] wrote: >>> Message: 1 >>> Date: Sat, 19 Jun 2010 03:07:58 -0400 >>> From: oktay sirrik<[email protected]> >>> Subject: [Soekris] soekris net45xx communicate web interface how to? >>> To: [email protected] >>> Message-ID: >>> <[email protected]> >>> Content-Type: text/plain; charset="iso-8859-1" >>> >>> Hi, >>> I am controlling via SSH or serial terminal Error Led with echo >>> command. >>> >>> echo 1> .... : Error Led ON >>> echo 0> ... : Error Led OFF >>> >>> I also installed apache server and upload test index.html page. >>> I want to control seokris ne45xx via web interface. Can i do that? >>> >>> For example; i designed 2 button index page. one off them LED ON , >>> other >>> one LED OFF button. >>> How can control soekris using this buttons (web interface) >>> >>> Thnaks >>> >>> Oki >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: >>> http://lists.soekris.com/pipermail/soekris-tech/attachments/20100619/910cd4ca/attachment-0001.html >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> Soekris-tech mailing list >>> [email protected] >>> http://lists.soekris.com/mailman/listinfo/soekris-tech >>> >>> >>> End of Soekris-tech Digest, Vol 76, Issue 8 >>> ******************************************* >>> >>> >> >> _______________________________________________ Soekris-tech mailing list [email protected] http://lists.soekris.com/mailman/listinfo/soekris-tech
