1FAIL2BAN-PYTHON(1)               User Commands              FAIL2BAN-PYTHON(1)
2
3
4

NAME

6       fail2ban-python  - a helper for Fail2Ban to assure that the same Python
7       is used
8

DESCRIPTION

10       usage: ../bin/fail2ban-python [option] ... [-c cmd | -m mod | file | -]
11       [arg]  ...   Options and arguments (and corresponding environment vari‐
12       ables): -B     : don't write .py[co] files on import;  also  PYTHONDON‐
13       TWRITEBYTECODE=x  -c  cmd  :  program  passed  in as string (terminates
14       option list) -d     : debug output from parser; also  PYTHONDEBUG=x  -E
15       :  ignore  PYTHON*  environment variables (such as PYTHONPATH) -h     :
16       print this help message and exit (also --help) -i     : inspect  inter‐
17       actively after running script; forces a prompt even
18
19              if stdin does not appear to be a terminal; also PYTHONINSPECT=x
20
21       -m  mod  :  run  library module as a script (terminates option list) -O
22       : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x -OO     :
23       remove  doc-strings  in addition to the -O optimizations -R     : use a
24       pseudo-random salt to make hash() values of various types be
25
26              unpredictable between separate invocations of  the  interpreter,
27              as a defense against denial-of-service attacks
28
29       -Q arg : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew -s
30       : don't add user site directory to sys.path; also  PYTHONNOUSERSITE  -S
31       :  don't  imply 'import site' on initialization -t     : issue warnings
32       about inconsistent tab usage (-tt: issue errors)  -u      :  unbuffered
33       binary stdout and stderr; also PYTHONUNBUFFERED=x
34
35              see man page for details on internal buffering relating to '-u'
36
37       -v     : verbose (trace import statements); also PYTHONVERBOSE=x
38
39              can be supplied multiple times to increase verbosity
40
41       -V      :  print the Python version number and exit (also --version) -W
42       arg : warning control; arg is action:message:category:module:lineno
43
44              also PYTHONWARNINGS=arg
45
46       -x     : skip first line of source, allowing use of non-Unix  forms  of
47       #!cmd -3     : warn about Python 3.x incompatibilities that 2to3 cannot
48       trivially fix file   : program read from script file -       :  program
49       read from stdin (default; interactive mode if a tty) arg ...: arguments
50       passed to program in sys.argv[1:]
51
52       Other environment variables: PYTHONSTARTUP: file executed  on  interac‐
53       tive startup (no default) PYTHONPATH   : ':'-separated list of directo‐
54       ries prefixed to the
55
56       default module search path.
57              The result is sys.path.
58
59       PYTHONHOME   : alternate  <prefix>  directory  (or  <prefix>:<exec_pre‐
60       fix>).
61
62              The default module search path uses <prefix>/pythonX.X.
63
64       PYTHONCASEOK  :  ignore  case in 'import' statements (Windows).  PYTHO‐
65       NIOENCODING: Encoding[:errors] used for  stdin/stdout/stderr.   PYTHON‐
66       HASHSEED: if this variable is set to 'random', the effect is the same
67
68              as  specifying the -R option: a random value is used to seed the
69              hashes of str, bytes and datetime objects.  It can also  be  set
70              to  an  integer  in  the range [0,4294967295] to get hash values
71              with a predictable seed.
72

SEE ALSO

74       fail2ban-client(1)
75
76
77
78fail2ban-python f2bversion       October 2018               FAIL2BAN-PYTHON(1)
Impressum