[web2py] Re: scheduler on webfaction

2013-04-11 Thread Jake Lowen
Simultaneously with Niphlod's reply also came this from webfaction customer 
support:

You can use the nohup command at the start of this command to make it 
immunte to hangups, like when you are exiting your ssh session. 
http://linux.die.net/man/1/nohup


Or you can use disown to disassociate the process with the current shell. 
http://www2.research.att.com/~gsf/man/man1/disown.html


Another, more powerful tool would be to start the process within a screen 
session. http://linux.die.net/man/1/screen and 
http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/

-- 

--- 
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/groups/opt_out.




[web2py] Re: scheduler on webfaction

2013-04-10 Thread Niphlod
not tested, but did you try with
nohup python web2py.py -K statecouncil 

?

On Wednesday, April 10, 2013 4:20:28 AM UTC+2, Jake Lowen wrote:
>
> Hi.  I have web2py installed on webfaction as my production server.
> I followed the web2py documentation on it's scheduler function and built 
> an app where everything works as anticipated. (very cool!)
>
> In order to run the scheduler though I need to SSH into the server and run 
> this command:
> "python ~/webapps/web2py/web2py/web2py.py -K statecouncil"
>
> All is well as long as I maintain my SSH session, but (obviously) when I 
> close that session, the above command no longer runs anymore. How can I 
> keep that command running at all times?  Is there a tutorial for installing 
> the scheduler as a service on webfaction that is not depended on my 
> personal computer being connected for it to run?
>
> Thanks!
>

-- 

--- 
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/groups/opt_out.