[web2py] Re: How to embed Linux script into a web2py controllers

2013-05-20 Thread si...@ymail.com
Thanks so much for your reply! Your advice makes sense, but it doesn't return a list of the Network ESSID's it only returns a number. Is there a more secure way i can do this. I know the application running on the raspberry pi is trying to access this information as a "www-data". how would i gi

[web2py] Re: How to embed Linux script into a web2py controllers

2013-05-11 Thread Massimo Di Pierro
You can do import os os.system('sudo iwlist wlan0 |"ESSID" > output.txt') output = open('output.txt').read() assuming the user running the web app has sudo access to iwlist. Look into sudoers to add the permission. On Friday, 10 May 2013 16:35:12 UTC-5, si...@ymail.com wrote: > > Hello, > > Pl