Changeset 856


Ignore:
Timestamp:
Oct 6, 2009, 10:42:36 AM (12 years ago)
Author:
teymour
Message:

Sections pour orga des log mails
mode verbose pour load_deputes

Location:
cpc/trunk/project/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/bin/load_deputes

    r419 r856  
    11#!/bin/bash
    2 echo > /tmp/load_deputes.log
    32cd batch/depute
    4 perl download_deputes.pl >> /tmp/load_deputes.log
    5 sh parse_tous.sh >> /tmp/load_deputes.log
     3perl download_deputes.pl
     4sh parse_tous.sh
    65cd -
    7 php symfony update:Deputes >> /tmp/load_deputes.log
     6php symfony update:Deputes
    87
  • cpc/trunk/project/bin/loadupdate

    r836 r856  
    77
    88
    9 # Init logs
    10 echo > /tmp/load_JO.log
    11 echo > /tmp/load_hemicycle.log
    12 echo > /tmp/load_commissions.log
    13 echo > /tmp/load_amendements.log
    14 echo > /tmp/load_questions.log
    15 echo > /tmp/process_data.log
    16 
    17 
    189# Mise à jur de la liste des députés
     10echo MaJ Deputes
     11echo =======================
    1912bash bin/load_deputes
    2013
    2114
    2215# Récupération et création des JSON
    23 cd batch/jo ; perl compute_latest.pl >> /tmp/load_JO.log ; cd -
    24 cd batch/hemicycle ; bash compute_latest.sh >> /tmp/load_hemicycle.log ; cd -
    25 cd batch/commission ; bash compute_latest.sh >> /tmp/load_commissions.log ; cd -
    26 cd batch/amendements ; bash compute_latest.sh >> /tmp/load_amendements.log ; cd -
    27 cd batch/questions ; bash compute_latest.sh >> /tmp/load_questions.log ; cd -
     16echo JO
     17echo =======================
     18cd batch/jo ; perl compute_latest.pl ; cd -
     19echo Hemicycle
     20echo =======================
     21cd batch/hemicycle ; bash compute_latest.sh ; cd -
     22echo Commission
     23echo =======================
     24cd batch/commission ; bash compute_latest.sh ; cd -
     25echo Amendements
     26echo =======================
     27cd batch/amendements ; bash compute_latest.sh ; cd -
     28echo Questions
     29echo =======================
     30cd batch/questions ; bash compute_latest.sh ; cd -
    2831
    2932
     
    3336
    3437# Chargement via tasks
    35 while ! php symfony load:JO >> /tmp/load_JO.log ; do
    36         php symfony cc
     38echo load JO
     39echo =======================
     40while ! php symfony load:JO ; do
     41        php symfony cc > /dev/null
    3742done;
    3843
     44echo Load Hemicycle
     45echo =======================
    3946while ls batch/hemicycle/out | grep [a-z] > /dev/null ; do
    40         php symfony cc
    41         php symfony load:Hemicycle >> /tmp/load_hemicycle.log
     47        php symfony cc > /dev/null
     48        php symfony load:Hemicycle
     49done;
     50echo Load commission
     51echo =======================
     52while ls batch/commission/out | grep [a-z] > /dev/null ; do
     53        php symfony cc > /dev/null
     54        php symfony load:Commission
     55done;
     56echo Load Amendements
     57echo =======================
     58while ls batch/amendements/json | grep [a-z] > /dev/null ; do
     59        php symfony cc > /dev/null
     60        php symfony load:Amdmts
     61done;
     62echo Load Question
     63echo =======================
     64while ls batch/questions/json | grep [a-z] > /dev/null ; do
     65        php symfony cc > /dev/null
     66        php symfony load:Questions
    4267done;
    4368
    44 while ls batch/commission/out | grep [a-z] > /dev/null ; do
    45         php symfony cc
    46         php symfony load:Commission >> /tmp/load_commissions.log
    47 done;
    48 
    49 while ls batch/amendements/json | grep [a-z] > /dev/null ; do
    50         php symfony cc
    51         php symfony load:Amdmts >> /tmp/load_amendements.log
    52 done;
    53 
    54 while ls batch/questions/json | grep [a-z] > /dev/null ; do
    55         php symfony cc
    56         php symfony load:Questions >> /tmp/load_questions.log
    57 done;
     69echo Post
     70echo =======================
     71# Postprocessings
     72echo Tags
     73echo =======================
     74bash bin/tag_seance
     75echo Session
     76echo =======================
     77php symfony set:Session
     78echo Vacances
     79echo =======================
     80php symfony set:Vacances
     81echo Top
     82echo =======================
     83php symfony top:Deputes
    5884
    5985
    60 # Postprocessings
    61 bash bin/tag_seance
    62 php symfony set:Session >> /tmp/process_data.log
    63 php symfony set:Vacances >> /tmp/process_data.log
    64 php symfony top:Deputes >> /tmp/process_data.log
    65 
    66 
Note: See TracChangeset for help on using the changeset viewer.