Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: stephdl on November 11, 2014, 09:42:01 AM

Title: Db tutorial need troubleshooters
Post by: stephdl on November 11, 2014, 09:42:01 AM
I have worked on the db tutorial, It was not nice and needed some works. I need your eyes to valid the work, please go ahead

http://wiki.contribs.org/Db_command_tutorial

For beginners or less familiars that could be nice you read the howto and ask what you do not understand, the howto was made for you, not for sme gurus who know the db command since years.
Title: Re: Db tutorial need troubleshooters
Post by: nicolatiana on November 11, 2014, 06:04:35 PM
It seems fine; I'll give a closer look this evening.

Maybe another useful addiction would be an updated list of variables: the present one (http://wiki.contribs.org/DB_Variables_Configuration#Database_variables) it's incomplete. I don't know: is it if possible to extract them automatically from the code with a perl script ?

Nicola
Title: Re: Db tutorial need troubleshooters
Post by: stephdl on November 11, 2014, 07:16:17 PM
Honestly nicolatiana that would be good! I'm sure that a lot of db are not know :)

in a two minutes script you can search like this for db

this one give us some db but not a lot
Code: [Select]
grep -srni '_prop' /etc/e-smith/templates|less
or this one which is much more verbose

Code: [Select]
grep -srni '${[A-Za-z0-9]\|$[A-Za-z0-9]\|_prop' /etc/e-smith/templates*| grep '}' |less
we look here about  $key{propriety} || 'default_value' or ${key}{propriety} || 'default_value'

good hunt