Difference between revisions of "SQWareProduction:mysql:lib:sqwmys Global.lib"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by Expdbtools)
 
m (Updated by BatchUser)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Librairie de fonctions shell $gvsqw_MysBin/../lib/sqwmys_Global.lib:<br>
+
shell functions library $gvsqw_MysBin/../lib/sqwmys_Global.lib:<br>
central lib of generic fonctions
+
{{SQWareProduction_sqwmys_Global.lib_presentation}}
 
<br>
 
<br>
gfsqw_BatchDuration
+
Functions explanation:
gfsqw_BatchDuration
+
<pre>
gfsqw_BeginningCom
+
gfsqw_CheckConn =>
  gfsqw_Colors
 
gfsqw_Colors
 
gfsqw_EndMailError
 
gfsqw_EndMailError 31 "You do not have write permission on $gvsqw_TmpDir !"
 
gfsqw_EndMailError 31 "You do not have write permission on $lvsqw_RootTmp !!"
 
gfsqw_EndMailError 33 "Database $lvsqw_DbName on $MYSQL_SID does not exist or pb connection !"
 
gfsqw_EndMailError 99 "Error, connection failed for $MYSQL_SID !!!\n$gvsqw_MysVersionMajInt"
 
gfsqw_EndTrt
 
 
gfsqw_EvalGlobalVar
 
gfsqw_EvalGlobalVar
gfsqw_GenListDatabase
+
gfsqw_FormatHtmlMessages =>
gfsqw_GetVersion
+
gfsqw_GenListDatabase =>
gfsqw_Init
+
gfsqw_GetVersion =>
gfsqw_JobEnd
 
gfsqw_Ptree
 
gfsqw_Purge
 
gfsqw_Purge
 
 
gfsqw_SourceProfile
 
gfsqw_SourceProfile
gfsqw_TempFile
+
gfsqw_TrapServer =>
 +
gfsqw_TrapVersion =>
 +
gfsqw_TrapVersion 2>&1|grep -v 'password on the command line' | sed 's,  *$,,g' > $gvsqw_MailInfoProgFile.tmp
 +
gfsqw_TrapVersion 2>&1| sed 's,  *$,,g' |tee $gvsqw_TmpFile
 +
</pre>
 
<br>
 
<br>
 
{{SQWareProductionSurchargeLib|mysql|Mys|sqwmys_Global.lib}}
 
{{SQWareProductionSurchargeLib|mysql|Mys|sqwmys_Global.lib}}
 
<br>
 
<br>

Latest revision as of 10:37, 11 February 2023

shell functions library $gvsqw_MysBin/../lib/sqwmys_Global.lib:
central lib of generic fonctions for mysql
Functions explanation:

gfsqw_CheckConn => 
gfsqw_EvalGlobalVar
gfsqw_FormatHtmlMessages => 
gfsqw_GenListDatabase => 
gfsqw_GetVersion => 
gfsqw_SourceProfile
gfsqw_TrapServer => 
gfsqw_TrapVersion => 
gfsqw_TrapVersion 2>&1|grep -v 'password on the command line' | sed 's,  *$,,g' > $gvsqw_MailInfoProgFile.tmp
gfsqw_TrapVersion 2>&1| sed 's,  *$,,g' |tee $gvsqw_TmpFile


Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MysBin/../lib/sqwmys_Global.lib

by function with same name in $gvsqw_MysBin/../lib_cust/sqwmys_Global.lib for all your environnement
or by $HOME/sqwConfig/sqwmys_Global.lib specifically for this user .