|
|
eWON wiki > eWON Support > Knowledge Base > Questions and Answers > Planner entry with dynamic filename
Planner entry with dynamic filenameFrom $1Table of contentsI need to send every day the Data recorded by the eWON to a FTP server, then I need to build the filename with the date to avoid overwrite. How can I do that?Using a Planner Entry is not possible in that case because you have no way to customize the filename of your Export Bloc Descriptor (EBD). Instead of using the Planner Entries from the Configuration page, use the Basic script to create your Planner Entry. MyAction: T$=Time$ A$="/usr/MyData/Data"+T$(7 To 10)+"-"+T$(4 To 5)+"-"+T$(1 To 2)+".csv" PUTFTP A$,"[$dtHL $ftT $st_d1 $et_s0 $tnTestTag]" END And to call this Action at a Scheduled interval, use the ONDATE function (Planner Script function). ONDATE 1,"0 0 * * *","GOTO MyAction" Now, every day at midnight, eWON will put a file on your FTP server with a name like Data2010-03-03.csv |