Bonjour,
J'essaye de lancer cette requête en script sh; mais ça ne fonctionne pas.
Ma boucle for n'est pas exécutée. Quelqu'un peut il m'aider?
Merci d'avance.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 BG_ExecuterCommandeShell echo "SELECT account_no from cmf where statement_to_email is null and account_category=11 and bill_disp_meth =3" > $f_sqlreq BG_ExecuterCommandeSql -fPurgerFicTmp CUSTOMER $f_sqlreq ARBOR cat $FIC echo $FIC BG_TraceLog "95349" "$FIC" # for line in `grep 'account_no=' $FIC`; do for line in ` $FIC`; do # prep_status=`echo $line | cut -d'=' -f2` # status=`echo $line | cut -d'=' -f3` # nb_bills=`echo $line | cut -d'=' -f4` account_no=`echo $line ` echo "" echo "ICIIIIII : $account_no" echo "" BG_TraceLog "95349" "Attention: Pas d'adresse email trouvé pour le compte account_no=$account_no" BG_ExecuterCommandeShell echo "UPDATE tbo_extracteur_facture SET STATUT_PGA=3, STATUT_RD=3 WHERE account_no=$account_no" > $f_sqlreq BG_ExecuterCommandeSql -fPurgerFicTmp CUSTOMER $f_sqlreq BOADM done
Partager