SQWareProduction:adabas:bin:sqwada ParallelRun.ksh

De WikiFr

Presentation

Script $gvsqw_AdaBin/sqwada_ParallelRun.ksh :




Aide en ligne

L'aide en ligne est accessible dans la plupart des scripts avec l'option -h.
Ex: $gvsqw_AdaBin/sqwada_ParallelRun.ksh -h
Contenu de l'aide :

Sourcing sqwada_Global.lib v2019.05 SQWareProduction for Adabas (dbSQWare) ... 

Usage: sqwada_ParallelRun.ksh [-h] -f <FileName> [+ options]

DESCRIPTION
   sqwada_ParallelRun.ksh run commands found in <FileName> in //
SUPPORT
   All rdbms type and version

PARAMETERS
     -f  FileName       : File name containing the commands to run.
OPTIONS
     -h  help           : Display the full usage.
     -s                 : Display samples of usage.
     -P  Nb threads     : Number of threads in parallel (by default 2).
     -AGR  Nb sec       : Nb of seconds between two run (by default 10s).
     -AGE  Nb sec       : Nb of seconds between two check of end (by default 30s).
     -FRT return_code   : Force return code value on error.
     -AddMail email     : Email Address to add at 'pmexpdba@gmail.com'.
     -SendReport        : Send execution log report.
     -NoMail            : Desactivate sendmail on error to pmexpdba@gmail.com (by default, send on error).
     -Locale   locale   : Force Locale for help display (fr,en).
     -FormatError       : Format error message in html.
     -MailFile filename : File name containing errors to send mail with an other script (disable sendmail).
     -Exec              : Execute commands (default, display generated commands)

Information.png
Information:
Pour etre sur d'avoir une aide a jour, reportez vous directement a l'aide en ligne du script avec l'option -h .


Traitement de l'erreur

Erreurs de parse des arguments

Ce type de message est genere:

Usage: sqwada_ParallelRun.ksh [-h] -f <lvsqw_FileName> [+ options]
For full help : sqwada_ParallelRun.ksh -h

If you are connecting through a terminal, no mail will be sent and you will have more this kind of message:

No send mail because you are in connected mode !!!
Lack 'FileName' parameter

If you are not connected to a terminal, the error message appears and is sent by mail to the address contained in the variable $gvsqw_Mail_adabas (See help customize this variable). The subject line will always start by "$gvsqw_MailMsg_adabas : " (See help customize this variable).

Information.png
Information:
Sending mail can be disabled by the option -NoMail for one execution.


Execution errors

Whether you are or not connected to a terminal, the error message appears and an email containing a summary of treatment errors is sent to the address contained in the variable $gvsqw_Mail_adabas (See help customize this variable). The subject line will always start by "$gvsqw_MailMsg_adabas : " (See help customize this variable).

Information.png
Information:
Sending mail can be disabled by the option -NoMail for one execution.


Usage examples

Sourcing sqwada_Global.lib v2019.05 SQWareProduction for Adabas (dbSQWare) ... 

No standard help for script sqwada_ParallelRun.ksh !

Information.png
Information:
To be sure the examples are accurate, refer directly to the online help script -s option.