jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [Documentation/] [module-howto/] [howto-read-data.pl] - Blame information for rev 14

 

Line No. Rev Author Line
11simandlThe script "read-data.pl" is quite small. It just imports the HotSaNICmod.pm library and calls its init function.
2Everything else happens then in HotSaNICmod::init.
3 
4---------- BEGIN CODE ----------
5#!/usr/bin/env perl
6use warnings;
7use diagnostics;
8 
9$|=1;
10 
11use lib "../../lib";
12use HotSaNICmod;
13 
14HotSaNICmod::init(@ARGV);
15---------- END CODE ----------
16 
17 
18The init() function will now import the module's "common.pm" library, parse the settings file and check the commandline arguments that have been passed to the script and act accordingly.
19Currently the following parameters are accepted:
20 
21argument function
22--------- --------------------------------------------------
23start start module daemon
24stop terminate module daemon
25status show status of module daemon
26configure running daemon will re-read its config file
27sample running daemon will sample instantly
28update not implemented yet
29 (the idea is to save time by doing bulk updates shortly before
30 diagram generation instead of updating the DBs every 10 seconds)
31version show version of OS-dependant module used
32showargs show settings hash
33 

Powered by WebSVN 2.2.1