Apply conversion script to all *.md files. authored by Alexander Hansen Færøy's avatar Alexander Hansen Færøy
== Bandwidth Controller Script for Tor by Bogdan Drozdowski == ## Bandwidth Controller Script for Tor by Bogdan Drozdowski
Some server operators wish to have a tool which would change their Tor server's bandwidth limit at given times. Some server operators wish to have a tool which would change their Tor server's bandwidth limit at given times.
The simplest solution I could come with is the following Perl script: [http://rudy.mif.pg.gda.pl/~bogdro/tor/torbandwctl.pl torbandwctl.pl]. The simplest solution I could come with is the following Perl script: [torbandwctl.pl](http://rudy.mif.pg.gda.pl/~bogdro/tor/torbandwctl.pl).
Homepage: http://rudy.mif.pg.gda.pl/~bogdro/tor/tor.html Homepage: http://rudy.mif.pg.gda.pl/~bogdro/tor/tor.html
Syntax: Syntax:
perl torbandwctl.pl [-p|--port NNNN] hour1:min1 "bandwidth1" [hour2:min2 "bandwidth2" ...] & perl torbandwctl.pl [-p|--port NNNN] hour1:min1 "bandwidth1" [hour2:min2 "bandwidth2" ...] &
* ''NNNN'' is the Tor control port number (default: 9051) * _NNNN_ is the Tor control port number (default: 9051)
* ''hour1:min1'' is the time at which the script should set the Tor bandwidth to ''bandwidth1'' * _hour1:min1_ is the time at which the script should set the Tor bandwidth to _bandwidth1_
* ''bandwidth1'' is the bandwidth value, in any format Tor can understand. It should be put in quotes, because running the script as * _bandwidth1_ is the bandwidth value, in any format Tor can understand. It should be put in quotes, because running the script as
'''torbandwctl.pl hh:mm 1 MB''' **torbandwctl.pl hh:mm 1 MB**
will cause the "1 MB" part to be passed as two separate arguments. will cause the "1 MB" part to be passed as two separate arguments.
* The & causes the script to be put in background by the shell (works under Bash). This is required (unless you can afford losing a terminal), because the script never exits. * The & causes the script to be put in background by the shell (works under Bash). This is required (unless you can afford losing a terminal), because the script never exits.
... ...
......