CentraSite Documentation : CentraSite User’s Guide : Working with Design/Change-Time Policies : Working with Email Notifications : Using Email Templates with Policy Actions : Creating a Script File for the EmailTemplateManager Utility : Creating a Script File for Unix (C-shell script)
Creating a Script File for Unix (C-shell script)
Create a script file that looks as follows if CentraSite CentraSite is running under Unix.
set javaexe="fullPathToJava.exe"
set redist="fullPathToJava.exe/redist"
set mainjar="CentraSiteUtils.jar"
set delim='\:'
cd "$redist"
set cl=""
foreach j ( `ls *.jar` )
if ($cl != "") set cl=${cl}${delim}
set cl=${cl}${j}
end
setenv CLASSPATH ${mainjar}${delim}${cl}
$javaexe com.centrasite.util.EmailTemplateManager $*
Example 33. Example
#!/bin/csh
#
# Run Email Template Manager Utility
#
set javaexe="/.../softwareag/cjp/v16/bin/java"
set redist="/.../softwareag/CentraSite/redist"
set mainjar="CentraSiteUtils.jar"
set delim='\:'
# build CLASSPATH with all files from jar directory
cd "$redist"
set cl=""
foreach j ( `ls *.jar` )
if ($cl != "") set cl=${cl}${delim}
set cl=${cl}${j}
end
setenv CLASSPATH ${mainjar}${delim}${cl}
$javaexe com.centrasite.util.EmailTemplateManager $*
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback