From 8b521c098457f7f1ff09f684bf4bfd08526608c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20V=C3=A9zina?= Date: Tue, 13 Mar 2018 16:52:20 -0400 Subject: [PATCH] Explain command switched specific to sessions2trash.p --- scripts/sessions2trash.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/sessions2trash.py b/scripts/sessions2trash.py index f338b453..228cf73f 100755 --- a/scripts/sessions2trash.py +++ b/scripts/sessions2trash.py @@ -26,6 +26,14 @@ Typical usage: def delete_sessions(): single_loop(auth.settings.expiration) +Command lines options specific to session2trash.py: +NOTE: They should be preceeded by web2py command line option "-A" to be passed to script. + +-f, --force : Ignore session expiration. Force expiry based on -x option or auth.settings.expiration. +-o, --once : Delete sessions, then exit. Essential when trigger trash sessions from system CRON JOB +-s, --sleep : Number of seconds to sleep between executions. Default 300. +-v, --verbose : print verbose output, a second -v increases verbosity +-x, --expiration : Expiration value for sessions without expiration (in seconds) """ from __future__ import with_statement