EBIworld.com > EBI/Clarify Tips > Perform Custom Purges via Scripting

Perform Custom Purges via Scripting

TAGS: EXTOL Customization / EXTOL Purge /


EXTOL supplies customers with a cool java tool that allows end-users (Windows/Linux) to purge directories that are normally not purged by EXTOL Business Integrator.

Background:

By using FolderCleanup.jar users can determine how many days of data to keep in directories that are not purged by EBI on a daily routine.

By using a few parameters we can start the process within a few minutes.

  • DAYSOLD  - Determine the number of days of data we keep
  • DIRECTORY - Directories to purge
  • JAVA HOME - Location of Java jar

Scripting:

@ECHO off
setlocal

set DAYSOLD=5
set DIRECTORY=“E:/EBI/jboss/server/ebi/log”
set DIRECTORY2=“E:/EBI/logs”
set DIRECTORY3=“E:/EBICustom/Esx/Server/Out/Archive”
set DIRECTORY4=“E:/EBICustom/Inbound Batch Processing/Archive”
set JAVA_HOME=“E:/Program Files (x86)/Java/jdk1.6.0_16/jre/bin”

set CP=“./lib/FolderCleanup.jar;”

%JAVA_HOME%\java -cp %CP% -Xmx128m com.extol.util.filesystem.FolderCleanup %DAYSOLD% %DIRECTORY%
%JAVA_HOME%\java -cp %CP% -Xmx128m com.extol.util.filesystem.FolderCleanup %DAYSOLD% %DIRECTORY2%
%JAVA_HOME%\java -cp %CP% -Xmx128m com.extol.util.filesystem.FolderCleanup %DAYSOLD% %DIRECTORY3%
%JAVA_HOME%\java -cp %CP% -Xmx128m com.extol.util.filesystem.FolderCleanup %DAYSOLD% %DIRECTORY4%

endlocal

How to Start:

Contact EXTOL Support and they can assist you with the FolderCleanup.jar. After you have installed FolderCleanup.jar it will take a few more minutes to configure the  scripting.


For more information on EBI 2.6


By: on
load('http://www.extol.com/extolnews.rss'); $feed = array(); foreach ($rss->getElementsByTagName('item') as $node) { $item = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed, $item); } $limit = 4; echo ' A free web counter provided by GoStats.