[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some perl team statistics



On 11/26/2010 10:28 AM, Christian Kuelker wrote:
Hi,

Xavier Oswald wrote:
On 20:44 11/23/10, gregor herrmann wrote:
On Mon, 22 Nov 2010 22:24:28 +0100, Xavier Oswald wrote:

If you want to have a look: http://alioth.debian.org/~xoswald/
Thanks alot!

I don't know perl a lot and I did this script relatively quicly, improving the
code is welcome ;) The source code can be found in my HOME directory on alioth.
How about throwing it into our svn-repo (probably under scripts/)?

Done.

My next plan is to store collected datas and be able to gather an history and
thus display history charts.
Nice!

Before using it for real, I want to improve some parts. Ill work on it ASAP.

Let's go to the BSP first ;)

some minutes I had a look at it. It looks promising! Some suggestions:

1) add a config file to the script. Use some simple and human
readable format. Config::Tiny will do.

The motivation is. if you make the configuration of the database (
user name and password) external, you can not make the mistake to
upload any password to the SVN.

So having to deal with a password in a script should only be done
via: a) cfg file or b) command line option. But not saved in a script.


b) is bad as everyone else on the system can grab the password.

So either a) or c) password by prompt or d) .my.cnf or similar file for other
databases.

Regards
          Racke


--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team


Reply to: