Planifier batch avec Task scheduler
Salut,
J'ai de nouveau besoin de vos avis experts :)
Voilà ce que fait mon batch :
- Il génère un fichier.properties
- Il lance un fichier .jar en mettant le .properties généré en paramètres.
- --> Génération d'un fichier .biar
Pour info, voilà le code (Ca va pas vous parler beaucoup, c'est en fait du Business Objects)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| SET Annee=%date:~6,4%
SET Mois=%date:~3,2%
SET Jour=%date:~0,2%
SET FicBIAR=E:/BIAR/%Annee%%Mois%%Jour%_ALL.biar
SET FicPropertiesBIAR=E:\BIAR\BiarProperties.properties
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Création du fichier .properties
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo # Génération dynamique du fichier properties>%FicPropertiesBIAR%
echo action=exportXML>>%FicPropertiesBIAR%
echo exportBiarLocation=%FicBIAR%>>%FicPropertiesBIAR%
echo userName=Administrator>>%FicPropertiesBIAR%
echo password=xxx>>%FicPropertiesBIAR%
echo CMS=SERVER:6400>>%FicPropertiesBIAR%
echo authentication=secEnterprise>>%FicPropertiesBIAR%
echo includeSecurity=true>>%FicPropertiesBIAR%
echo exportDependencies=true>>%FicPropertiesBIAR%
echo exportQuery1 = SELECT * FROM CI_infoobjects WHERE si_kind IN('FulClient','Folder' )>>%FicPropertiesBIAR%
echo exportQuery2 = SELECT * FROM ci_systemobjects WHERE si_kind IN ('User','UserGroup')>>%FicPropertiesBIAR%
echo exportQuery3 = SELECT * FROM ci_Appobjects WHERE SI_KIND IN ('Folder','MetaData.DataConnection','Overload','Universe')>>%FicPropertiesBIAR%
echo exportQueriesTotal=^3>>%FicPropertiesBIAR%
echo #FIN du fichier properties>>%FicPropertiesBIAR%
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Génération du BIAR
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
cd E:\BusinessObjects\common\4.0\java\lib
java -jar biarengine.jar %FicPropertiesBIAR% |
Ce batch est sur un serveur. Je me connecte avec le compte Administrator.
- Lorsque je le lance manuellement, mon batch fonctionne, mon fichier .biar est généré.
- Lorsque je le planifie avec le Task Scheduler de Windows, mon fichier .biar n'est pas généré ! Pourtant, lorsque je regarde l'état de la planification de mon batch, il est en succès.
J'ai bien planifié l'exécution du batch avec le même compte Administrator.
D'où est-ce que ça peut venir ?