Quote:
Originally Posted by abhijeetkul
make sure you have write permissions to
/opt/bea/wls61/config/dev05/batch_automation/batchPolicy/logs directory
also try to source ".profile" of the user (with which the script is to be run)
in the script itself.
for e.g
#! /bin/ksh
cd <user_home_directory or the location where .profile is kept>
. .profile
.
.
remaining script
regards
abhijeet
Hi Abhijit
we tried with this :
cd /export/home/wlsdev05
.profile
cd /opt/bea/wls61/config/dev05/batch_automation/batchPolicy
JAVA_HOME=/opt/bea/jdk131
WL_HOME=/opt/bea/wls61
INSTANCE=dev05
FRAMEWORK_LIB=$WL_HOME/config/$INSTANCE/lib/com/fits
SERVICE_HOME=$WL_HOME/config/$INSTANCE/services
BATCH_HOME=$WL_HOME/config/$INSTANCE/batch/lib
CONFIG_HOME=$WL_HOME/config/$INSTANCE/batch/config
CLASSPATH=.:$BATCH_HOME/batch.jar:$BATCH_HOME/classes12.jar:$SERVICE_HOME/plus/lib/com/fits/plus.jar:$SERVICE_HOME/diary/lib/
com/fits/diary.jar:$FRAMEWORK_LIB/FitsUtil.jar:$FRAMEWORK_LIB/FitsFramework.jar:$FRAMEWORK_LIB/jdom.jar:$BATCH_HOME/NetCompon
ents.jar:$FRAMEWORK_LIB/xercesImpl.jar:$FRAMEWORK_LIB/customerService.jar:$SERVICE_HOME/numbering/lib/numberingService.jar:$S
ERVICE_HOME/question/lib/com/fits/QuestionEngine.jar:$WL_HOME/lib/weblogic.jar:$SERVICE_HOME/ios/lib/ios.jar:$BATCH_HOME/Acco
untService.jar:$BATCH_HOME/AddressService.jar:$BATCH_HOME/Producer.jar:$FRAMEWORK_LIB/FITSDBPool.jar
BATCH_LIB=$BATCH_HOME/lib
CLASSPATH=$BATCH_HOME/claims.jar:$BATCH_HOME/mail.jar:$BATCH_HOME/activation.jar:$CLASSPATH
RUNTIME_OPTIONS="-Dconfig.file=$CONFIG_HOME/batch.xml -Duser.timezone=America/New_York -Djava.naming.factory.initial=weblogic
.jndi.T3InitialContextFactory -Djava.naming.provider.url=t3://172.16.18.149:8005 -Djava.naming.security.principal=system -Dja
va.naming.security.credentials=mfxclaims"
mv logs/200* logs/bak
echo $RUNTIME_OPTIONS
$JAVA_HOME/bin/java $RUNTIME_OPTIONS -cp $CLASSPATH com.fits.service.claimservice.batch.policyverification.BatchPolicyVerific
ationMain $1 $2 $3 > logs/batchPolicy.log 2>&1 &
*******************
It created a log file but of zero bit size, which should'nt be.
Please advice
Regards
Pankaj