Sponsored Content
Full Discussion: Cron job
Top Forums Shell Programming and Scripting Cron job Post 302079931 by pankajkrmishra on Friday 14th of July 2006 01:28:26 AM
Old 07-14-2006
Hi Abhijit

Following is the error after modification as per your suggestion.

Your "cron" job on mfrkuxwbd01
/opt/bea/Wls61/config/devo5/batch_automation/batchPolicy/startBatchPolicy.sh > /opt/bea/wls61/config/dev05/batch_automation/batchPolicy/logs/batchPolicy.log

produced the following output:

sh: /opt/bea/Wls61/config/devo5/batch_automation/batchPolicy/startBatchPolicy.sh: not found


****************************

Script:
#!/bin/ksh
#
# This Script will Start Policy Verification
###########################################


PATH=$PATH:/export/home/wlsdev0
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_automation/lib
CONFIG_HOME=$WL_HOME/config/$INSTANCE/batch_automation/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>> /opt/bea/wls61/config/dev05/batch_automation/batchPolicy/logs/batcherr.log.


*******************

Crontab entry is :

## Testing of Automation for Policy Verification - Pankaj
13 00 * * * /opt/bea/Wls61/config/devo5/batch_automation/batchPolicy/startBatchPolicy.sh > /opt/bea/wls61/config/dev05/batch_automation/batchPolicy/logs/batchPolicy.log
##


Please suggest

Regards
Pankaj
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job

Hi All , We have few scripts which uses common environment/path setting variables. Now instead of putting classpath , framework,java_home ..... etc. in all the script, can we make a file with all common settings which can be envoked by the scripts while running. If yes , say setting file is... (3 Replies)
Discussion started by: pankajkrmishra
3 Replies

2. UNIX for Dummies Questions & Answers

Cron job

Regarding Cron job, i want to execute a scriptevery 4 days once irrespective of a week or a month. Is it possible?Any help (2 Replies)
Discussion started by: santho
2 Replies

3. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

4. UNIX for Dummies Questions & Answers

cron job

I created a php script i want to run as a cronjob. Where or how can I locate the cronjob file to add my script ? (3 Replies)
Discussion started by: dannyd
3 Replies

5. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

6. UNIX for Advanced & Expert Users

cron job

Hello, Can anyone help me how to set any script as cron job. I have gone through all threads but not able to get the details. Appreciate your help. I need to set test.pl to run on every Tuesday by 6am in the morning. I do not the cron file which is defined. Please help me out. ... (3 Replies)
Discussion started by: jam_prasanna
3 Replies

7. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

8. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

9. UNIX for Dummies Questions & Answers

Cron Job

How to schedule a cron job to run every other Monday. Thanks in advance. (2 Replies)
Discussion started by: ITDev01
2 Replies

10. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
JH_GENERATEORBITDIR(1)						    Javahelper						    JH_GENERATEORBITDIR(1)

NAME
jh_generateorbitdir - Creates and populates an orbit dir used by pde-build for third-party jar files. SYNOPSIS
jh_generateorbitdir [debhelperoptions] [--orbit-dir=dir] [orbit-dep[...]] DESCRIPTION
jh_generateorbitdir is a javahelper program that handles creation of an orbit dependency dir. This directory has to be populated with non- eclipse jar files. However, eclipse refers to these jars by their "symbolic name". jh_generateorbitdir can extract this name from the jar's manifest (provided it has the OSGi metadata) and create a symlink to it. jh_generateorbitdir will replace regular files with symlinks if they are present in the orbit dir and clash with the name of one of the orbit jars. If an orbit jar name clashes with a symlink in the orbit dir, then jh_generateorbitdir will assume that the given jar has already been symlinked correctly. In this case the jar file is still recorded in the cache (see below). jh_generateorbitdir will also check the default installation for jar files on Debian systems (at the time of writing /usr/share/java), if it cannot find the jar in the current dir. Jar files replaced by jh_generateorbitdir will be recorded so that jh_installeclipse can replace with symlinks them post install. FILES
debian/eclipse.orbitdeps List of orbit dependencies - one per line. This can be used as an alternative to passing it per command line. OPTIONS
--orbit-dir=dir Specifies the directory from where the orbit-dir is or should be created. Defauls to "debian/.eclipse_build/orbitdeps". EXAMPLE
jh_generateorbitdir --orbit-dir orbit asm3 oro Will generate a folder called orbit with two symlinks based on asm3 and oro's symbolic name. SEE ALSO
debhelper(7) This program is a part of javahelper and uses debhelper as backend. There are also tutorials in /usr/share/doc/javahelper. AUTHOR
Niels Thykier <niels@thykier.net> COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier This tool is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2. 0.43 2011-04-29 JH_GENERATEORBITDIR(1)
All times are GMT -4. The time now is 05:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy