send logfiles via TI Process
Posted: Tue Mar 13, 2012 10:49 am
Dear all,
again a Question from my side and again hope that someone can help me. As you can see below I have a Process who is sending and email over commandline. Ecerything is working fine with this line.
name = 'Load_DIM_All_2_0_Create_Default_Subset';
logname = 'C:\cpm\TM1Data\atpissw_fap\TM1ProcessError_20120312105347_Load_DIM_All_2_0_Create_Default_Subset.log';
#*** with Attachement (the original Username and Password is replaced with * in this tread)
executecommand('C:\Programme\MDRApps\SMTPSEND\smtpsend.exe /MailServer=smtp.gmx.net /Port=25 /UserName=************ /Password=************ /From=pitagora@gmx.at /Subject="Error in process ' | name | ' !" /Body=error /To=christian.koenig@pitagora.at /Attachment="' | logname | '"',0);
My Problem is now follow:
You can see that i attache the Logfile from called "TM1ProcessError_20120312105347_Load_DIM_All_2_0_Create_Default_Subset.log". But In my Situation the name ot the logfile is everytime different becuase there is a Timestamp in the name "TM1ProcessError_20120312105347_Load_DIM_All_2_0_Create_Default_Subset.log"
How i can find out now what my last logfile is.
Or is it possible to deactivate the Timestamp in the Logfile name?
Hope my describtion of the Situation it is clear enought
Chris
again a Question from my side and again hope that someone can help me. As you can see below I have a Process who is sending and email over commandline. Ecerything is working fine with this line.
name = 'Load_DIM_All_2_0_Create_Default_Subset';
logname = 'C:\cpm\TM1Data\atpissw_fap\TM1ProcessError_20120312105347_Load_DIM_All_2_0_Create_Default_Subset.log';
#*** with Attachement (the original Username and Password is replaced with * in this tread)
executecommand('C:\Programme\MDRApps\SMTPSEND\smtpsend.exe /MailServer=smtp.gmx.net /Port=25 /UserName=************ /Password=************ /From=pitagora@gmx.at /Subject="Error in process ' | name | ' !" /Body=error /To=christian.koenig@pitagora.at /Attachment="' | logname | '"',0);
My Problem is now follow:
You can see that i attache the Logfile from called "TM1ProcessError_20120312105347_Load_DIM_All_2_0_Create_Default_Subset.log". But In my Situation the name ot the logfile is everytime different becuase there is a Timestamp in the name "TM1ProcessError_20120312105347_Load_DIM_All_2_0_Create_Default_Subset.log"
How i can find out now what my last logfile is.
Or is it possible to deactivate the Timestamp in the Logfile name?
Hope my describtion of the Situation it is clear enought
Chris