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