Using the TimeStamp task

Looking for an example project to get you started?

Using the TimeStamp task

Postby Support_Julie » Wed Jun 03, 2009 11:28 am

The following project is an example of using the TimeStamp task:

Code: Select all
<project name="TIMESTAMP DEMO" mainModule="Main" version="1.0" logLevel="debug">
   <module name="Main">
      <timestamp />
           <timestamp>
         <format outputVariable="today" pattern="yyyy-MM-dd" />
      </timestamp>
      <ftp resourceId="DEV 53">
         <put sourceFile="/gademo/payroll.xls" destinationFile="/gademo/linoma${today}.xls" />
      </ftp>
      <print>
         <![CDATA[The Current system time is:  ${system.currentTime}]]>
      </print>
   </module>
</project>


The TimeStamp patterns can be found in the GoAnywhere help text, or at viewtopic.php?f=19&t=32

In the above example, the variable today is created. This variable can be used in naming a file.
Also the current system time is written to the GoAnywhere job log.
Julie
Software Support
Linoma Software
Support_Julie
Support Specialist
 
Posts: 75
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA

Return to Example Projects

Who is online

Users browsing this forum: No registered users and 0 guests

cron