On Tuesday, February 5, 2019 at 11:05:14 PM UTC-8, Константин Комков wrote: > > In book I see: >> >> You will probably need to include the full path to both web2py.py and the >> scripts folder, and the trailing & is not needed. > > Why both? I have only one file which called web2py. > Services with Argument c:\XXX\XXX\web2py.py -p 8041 -i "0.0.0.0" > --password="XXXXXX" work but I don't know what it do. > Services with Argument c:\XXX\XXX\web2py.py -p 8041 -i "0.0.0.0" > --password="XXXXXX" --shell=stud -M -R > c:\XXX\XXX\scripts\sessions2trash.py -A -o -x 3600 -f -v don't work. >
Is "stud" your application name? To clear sessions, try c:\XXX\XXX\web2py.exe -S stud -M -R scripts\sessions2trash.py -A -o -x 3600 -f -v (If you're not using web2py.exe, then you need to CMD to use python with web2py.py python27 web2py.py -S stud -M -R scripts\sessions2trash.py -A -o -x 3600 -f -v ) The -p, -i, and password arguments are only for starting the web server. The path to the script nomrally is relative to the directory web2py.exe is in. The '&' is a unix/linux thing and doesn't help on Windows. Good luck! /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.