#!/bin/bash
while IFS= read -r app; do
  python /www/web2py/web2py.py --nogui --no-banner -S $app -M -R 
/www/web2pyscripts/sessions2trash.py -A -o -x 28800 -f 
>>/www/web2py/clean.txt 2>&1
done </www/web2py/applications/list_app.txt


I'm trying to clean sessions for many applications with a cron job.
I've stored all application names in list_app.txt, the file is like:

app1
app2
app3
....

When I run the script web2py start regularly but don't clean sessions.
I've tried also  replacing $app with a real application name (instead of a 
variable), but nothing happened indeed.
Any suggestion?

Thx

Ivan

-- 
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.

Reply via email to