AnsweredAssumed Answered

xog in .bat script

Question asked by npara on May 24, 2013
Latest reply on May 24, 2013 by Dave
Hi All,

We are currently in v13.1 , Windows 2008 R2 STD , Tomcat 7 Application server.
We are having a .bat file in the server as below which will read the timesheets data for the users in the prj_timeperiods_read.xml file and place the output .XML file in a FTP server.
All the files used in the script are in the same folder d:\xog\bin

.bat Script.
d:
cd \XOG\bin
ClarityXML.exe prj_timeperiods_read1.xml prj_timeperiods_read.xml
xog -propertyfile test1.properties
REM - nothing after run runs since run is a batch file that takes control.
REM CALL WAIT 120
ftp -i -s:Resulte1.txt ftp.server.com

In the above script after the ‘xog -propertyfile test1.properties’ the script is showing ‘Logout succeeded’ and not executing the FTP command. Hence the output file is generated but not placed in the FTP server.

Below is the .properties file used to XOG.
# --- server host name you want to test against
servername=clarityserver
portnumber=80

#default port number for ssl
#portnumber=443

#set to true if running against a SSL enabled server
sslenabled=false

output=timesheets.xml
username=xxxx
password=xxxx

# --- leave the input file you want to run un-commented and comment out all other input entries

input=prj_timeperiods_read.xml

#input=../xml/content_pack_read.xml
#input=../xml/nikuxogtest.xml
#input=../xml/prj_projects_read.xml
#input=../xml/prj_projects_read.xml
#input=../xml/prj_projects_write.xml
#input=../xml/cmn_users_read.xml
#input=../xml/cmn_users_write.xml
#input=../xml/biz_companies_write.xml
#input=../xml/biz_companies_read.xml
#input=../xml/pac_entity_write.xml
#input=../xml/rsm_resources_write.xml
#input=../xml/rsm_resources_read.xml
#input=../xml/roles_write.xml
#input=../xml/imp_transactions_write.xml
#input=../xml/imp_transactions_read.xml
#input=../xml/prj_chargecodes_read.xml
#input=../xml/prj_typecodes_read.xml
#input=../xml/prj_timeperiods_read.xml
#input=../xml/prj_timeperiods_write.xml
#input=../xml/olts_timeperiods_read.xml
#input=../xml/departments_write.xml
#input=../xml/financial_planning_write.xml
#input=../xml/fos_locations_write.xml
#input=../xml/content_pack_read.xml
#input=../xml/content_pack_write.xml
#input=../xml/caplan_scenarios_read.xml
#input=../xml/caplan_scenarios_write.xml
#input=../xml/xdm_forms_write.xml

This properties file is generating the timesheets.xml file and placed in the folder d:\xog\bin since it is logged out after the line ‘xog -propertyfile test1.properties’ the file is not placed in the FTP server.


Let me know why the script is getting logged out after the step , is there any other command used to XOG out the data, i tried using run_export but it is not recognized by windows 2008 server.

Outcomes