Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ppplog_docs [16.07.2006 13:51 (vor 20 Jahren)] – angelegt cwacha | ppplog_docs [16.11.2016 23:18 (vor 10 Jahren)] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | < | ||
| - | ########################################### | ||
| - | ## Example Config File | ||
| - | ## ppplog 1.0 | ||
| - | ## | ||
| - | ## supplied by Clemens Wacha < | ||
| - | ########################################### | ||
| - | # comments start with '#' | + | ===== General ===== |
| - | # defaults in [] | + | |
| - | # options are CASE SENSITIVE (yes im lazy..) | + | # defaults in [] |
| + | # options are CASE SENSITIVE (yes im lazy..) | ||
| - | # debug [0] | + | ==== Debug ==== |
| - | # if enabled lists lots of debug messages | + | |
| - | # | + | |
| - | #debug 1 | + | |
| - | # check_delay | + | |
| - | # time between connection tests. ppplog sleeps exaclty check_delay | + | # if enabled lists lots of debug messages |
| - | # seconds. you can increase this value as you like. ppplog will stop | + | # |
| - | # accounting as soon as it detects that the link is down (which takes more time | + | #debug 1 |
| - | # if check_delay is big). | + | |
| - | # | + | |
| - | #check_delay | + | |
| - | # dial_delay [0] | + | ==== Check delay ==== |
| - | # the delay in seconds between the start of pppd and the actual internet | + | |
| - | # connection. depends on your phone company. normally they charge you as soon | + | |
| - | # as the line is established. | + | |
| - | # | + | |
| - | # dial_delay 0 | + | |
| - | # silent | + | |
| - | # you will get no output | + | # time between connection tests. ppplog sleeps exaclty check_delay |
| - | # | + | # seconds. you can increase this value as you like. ppplog |
| - | #silent 0 | + | # accounting as soon as it detects that the link is down (which takes more time |
| + | # if check_delay | ||
| + | # | ||
| + | #check_delay 1 | ||
| - | # background [0] | + | ==== Dial delay ==== |
| - | # program goes to background immediately after start. useful if you | + | |
| - | # would like it to run as a service | + | |
| - | # | + | |
| - | #background 0 | + | |
| - | ########################## | + | |
| - | # Accounting Information | + | |
| - | ########################## | + | |
| + | | ||
| + | # | ||
| + | # dial_delay 0 | ||
| - | # config [no default] | + | ==== Silence mode ==== |
| - | # THIS LINE IS IMPORTANT! The line creates a new set of zone definitions. All accounting | + | |
| - | # options after this line are attached to the config set. So this line has to appear before you | + | |
| - | # define log-/ | + | |
| - | # phone company at the same time just add another ' | + | |
| - | # | + | |
| - | #config my_sunrise_definition | + | |
| - | # logfilename | + | |
| - | # where do you want the logfile to be. set to / | + | # you will get no output |
| - | # logfile (why do you use this program??? | + | # |
| - | # gets closed. | + | #silent 0 |
| - | # | + | |
| - | #logfilename / | + | |
| - | # savefilename | + | ==== Backgrouding ==== |
| - | # the file where ppplog keeps track of the running costs. the file gets | + | |
| - | # updated every time a connection gets closed. | + | # program goes to background immediately after start. useful if you |
| - | # | + | # would like it to run as a service |
| - | #savefilename / | + | # |
| + | #background 0 | ||
| - | # isolog [0] - nice format | ||
| - | # do you prefer a nicley formatted logfile or an ISO compliant (hopefully) | ||
| - | # logfile for further processing? | ||
| - | # | ||
| - | #isolog 0 | ||
| - | # isodelim [" "] | + | ===== Accounting Information ===== |
| - | # only used if isolog | + | |
| - | # | + | |
| - | #isodelim "," | + | |
| - | # initial_cost [0.00] | + | ==== Config name ==== |
| - | # some phone companies charge you an establishing fee. (i.e. sunrise in | + | |
| - | # Switzerland | + | |
| - | # | + | |
| - | # | + | |
| - | # min_cost | + | |
| - | # a call always costs at least that much. even if your phone call would cost | + | # THIS LINE IS IMPORTANT! The line creates |
| - | # less because it didn't took long enough. depends on your phone company. | + | # options after this line are attached to the config set. So this line has to appear before you |
| - | # normally | + | # define log-/ |
| - | # | + | # phone company at the same time just add another ' |
| - | #min_cost 0 | + | # |
| + | #config my_sunrise_definition | ||
| - | # currency_before | + | ==== Log file ==== |
| - | # a text string displayed before | + | |
| - | # is the string used in the log file. | + | # where do you want the logfile to be. set to / |
| - | # | + | # logfile (why do you use this program??? |
| - | #currency_before " | + | # gets closed. |
| + | # | ||
| + | #logfilename / | ||
| - | # currency_after | + | ==== Save file ==== |
| - | # displayed in formatted log and if silent = 0 after the cost. | + | |
| - | # | + | # the file where ppplog keeps track of the running costs. the file gets |
| - | #currency_after "" | + | # updated every time a connection gets closed. |
| + | # | ||
| + | # | ||
| - | # uom_cost | + | ==== ISO logging ==== |
| - | # the unit of measure cost (in seconds) is used to simplify the zone cost | + | |
| - | # entries. most phone companies tell you the phone cost per hour. In this | + | # do you prefer a nicley formatted logfile or an ISO compliant |
| - | # case set uom_cost to 3600. see the examples below and mail me if that is | + | # logfile for further processing? |
| - | # unclear. | + | # |
| - | # | + | #isolog 0 |
| - | #uom_cost 3600 | + | |
| - | # day [no default] | + | ==== ISO delimiter ==== |
| - | # day is used to simplify the zone entries. just select | + | |
| - | # is active. if the zone is active on weekday' | + | # only used if isolog = 1. the delimiter between |
| - | # for monday, 2 for tuesday etc. | + | # |
| - | # | + | #isodelim "," |
| - | #day 1 2 3 4 5 | + | |
| - | # zone [no default] | + | ==== Initial cost ==== |
| - | # zone defines a cost zone. this is the most important option here. tell | + | |
| - | # ppplog when the zone starts, when it ends, how long a unit is and how | + | # some phone companies charge you an establishing fee. (i.e. sunrise in |
| - | # much the unis costs. example | + | # Switzerland = 0.03/per call |
| - | # | + | # |
| - | # name of zone | + | #initial_cost 0.03 |
| - | # zone " | + | |
| - | # | + | |
| - | # if it costs 1.5 per hour remember to set uom_cost 3600. | + | |
| - | # | + | |
| - | #zone char* int int int int int float | + | |
| - | # specialday | + | ==== Minimal cost per call ==== |
| - | # specialday is a special zone used for national holidays. the format is similar | + | |
| - | # to zone. remark the last 3 parameters. special days are always checked first. | + | # a call always costs at least that much. even if your phone call would cost |
| - | # ppplog uses the first zone that matches the current time and date!! | + | # less because it didn't took long enough. depends on your phone company. |
| - | # | + | # normally you set either initial_cost or min_cost. |
| - | # specialday name starthour startmin stophour stopmin unitlength unitcost day month year | + | # |
| - | #specialday " | + | #min_cost 0 |
| - | # include [] | + | ==== Currency strings ==== |
| - | # include reads another config file. this helps you keep national holiday | + | # currency_before [" |
| - | # definitions in a seperate file. of course you can put any config options | + | # a text string displayed before the cost if silent = 0. if isolog = 1 this |
| - | # into that file | + | # is the string used in the log file. |
| - | # | + | # |
| - | #include / | + | # |
| + | |||
| + | |||
| + | # currency_after ["" | ||
| + | # displayed in formatted log and if silent = 0 after the cost. | ||
| + | # | ||
| + | # | ||
| + | |||
| + | ==== Cost divider (Unit of Measure) ==== | ||
| + | # uom_cost [1] | ||
| + | # the unit of measure cost (in seconds) is used to simplify the zone cost | ||
| + | # entries. most phone companies tell you the phone cost per hour. In this | ||
| + | # case set uom_cost to 3600. see the examples below and mail me if that is | ||
| + | # unclear. | ||
| + | # | ||
| + | #uom_cost 3600 | ||
| + | |||
| + | ==== Active days ==== | ||
| + | # day [no default] | ||
| + | # day is used to simplify the zone entries. just select the days when the zone | ||
| + | # is active. if the zone is active on weekday' | ||
| + | # for monday, 2 for tuesday etc. | ||
| + | # | ||
| + | #day 1 2 3 4 5 | ||
| + | |||
| + | ==== Zone definition ==== | ||
| + | # zone [no default] | ||
| + | # zone defines a cost zone. this is the most important option here. tell | ||
| + | # ppplog when the zone starts, when it ends, how long a unit is and how | ||
| + | # much the unis costs. example | ||
| + | # | ||
| + | # name of zone | ||
| + | # zone " | ||
| + | # | ||
| + | # if it costs 1.5 per hour remember to set uom_cost 3600. | ||
| + | # | ||
| + | #zone char* int int int int int float | ||
| + | |||
| + | ==== Special days, holidays etc ==== | ||
| + | # specialday [no default] | ||
| + | # specialday is a special zone used for national holidays. the format is similar | ||
| + | # to zone. remark the last 3 parameters. special days are always checked first. | ||
| + | # ppplog uses the first zone that matches the current time and date!! | ||
| + | # | ||
| + | # specialday name starthour startmin stophour stopmin unitlength unitcost day month year | ||
| + | #specialday " | ||
| + | |||
| + | |||
| + | ===== Config file including ===== | ||
| + | | ||
| + | # include reads another config file. this helps you keep national holiday | ||
| + | # definitions in a seperate file. of course you can put any config options | ||
| + | # into that file | ||
| + | # | ||
| + | #include / | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | ==== Example 1 ==== | ||
| + | < | ||
| - | ############################ | ||
| - | ## Example1 ################ | ||
| - | ############################ | ||
| - | # | ||
| # sunrise switzerland has 3 zones on weekdays and 2 zones on weekends. | # sunrise switzerland has 3 zones on weekdays and 2 zones on weekends. | ||
| # they charge you per second not per unit. you have to pay 0.03 CHF for | # they charge you per second not per unit. you have to pay 0.03 CHF for | ||
| Zeile 185: | Zeile 204: | ||
| # | # | ||
| # thats it! easy, isn't it? | # thats it! easy, isn't it? | ||
| + | </ | ||
| - | ## Example2 ## | + | |
| - | # | + | ==== Example 2 ==== |
| + | < | ||
| # swisscom switzerland has 3 zones on weekdays and 2 zones on weekends. | # swisscom switzerland has 3 zones on weekdays and 2 zones on weekends. | ||
| # they charge you per unit. every phone call costs at least 0.2 CHF. | # they charge you per unit. every phone call costs at least 0.2 CHF. | ||