Thanks, yes the web2py is started from /etc/init.d I wonder if I do that the imported pins will be in the web2py environment?
On Wednesday, 20 May 2015 17:50:11 UTC-4, Dave S wrote: > > > > On Wednesday, May 20, 2015 at 1:56:50 PM UTC-7, Aydin S wrote: >> >> I'm trying to set a GPOI pin to be output. I do not want to repeat this, >> I want this to happen only one time like (set pin 10 to output). And I want >> this to happen only every time web2py is started. Thanks. >> >> > For that, I;d make a stand-alone program to set the pin, and then a shell > script to invoke that program and then start web2py. > > Are you starting web2py from something in /etc, from a login script, or > from an nginx configuration file? > > /dps > > > >> On Wednesday, 20 May 2015 15:45:10 UTC-4, Dave S wrote: >>> >>> >>> >>> On Wednesday, May 20, 2015 at 12:28:37 PM UTC-7, Aydin S wrote: >>>> >>>> I want to initialize a few things on a linux machine running web2py >>>> server. Meaning that a init.py file to be run in the boot, things >>>> initilized in init.py will be used in web2py environment, can scheduler do >>>> it? If so, I should set the number of repeats to 1? >>>> >>> >>> Are you specifically interested in setting environmental variables, or >>> making links, or doing something like generating index files on the DB, or >>> maybe generating new content (for example, making PDF files from some >>> nightly update)? >>> >>> /dps >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.