wuyels
10th September 2002, 12:03
Hi,
We need using rc.startjob to automatic run a job,So,I make a Script to Run the rc.startjob.
After build script file,I test to Execute new build Script file in UNIX,It is ok(can write log to file and to activate job).Afterward, I seting the file to Cron,But occur below state:
1.0 can write log to specify log file.
2.0 can't execute to Activate job(Baan session ttaad5203m000 status still is 'Free').
I check the two file 'cron.deny'and 'cron.allow' is seting correct.
below is script code:
# Purpos
# Post Integration Transactions automatically (Every Day)
# Environment Variables #
BSE=/baan/baan4c4/bse
BSE_TMP=$BSE/tmp
ORACLE_HOME=/oracle/oracle8
ORACLE_SID=baan4c4
export BSE
export BSE_TMP
export ORACLE_HOME
export ORACLE_SID
# Execute BaaN Job #
/baan/home/batch/c430/rc.startjob PITG01
# Log Check #
/usr/bin/echo 'Check Date' >> /var/cron/log_bsp/log.dmp
/usr/bin/date >> /var/cron/log_bsp/log.dmp
/usr/bin/echo '-------------------------------------------' >>/var/cron/log_bsp/
log.dmp
#/usr/bin/grep "n't" /baan/home/bsp/tbldump/bkup/1_Mon/x_pre.err >> /var/cron/log_bsp/log.dmp
##########
Any suggestions are appreciated.
Thanks!
Wu
We need using rc.startjob to automatic run a job,So,I make a Script to Run the rc.startjob.
After build script file,I test to Execute new build Script file in UNIX,It is ok(can write log to file and to activate job).Afterward, I seting the file to Cron,But occur below state:
1.0 can write log to specify log file.
2.0 can't execute to Activate job(Baan session ttaad5203m000 status still is 'Free').
I check the two file 'cron.deny'and 'cron.allow' is seting correct.
below is script code:
# Purpos
# Post Integration Transactions automatically (Every Day)
# Environment Variables #
BSE=/baan/baan4c4/bse
BSE_TMP=$BSE/tmp
ORACLE_HOME=/oracle/oracle8
ORACLE_SID=baan4c4
export BSE
export BSE_TMP
export ORACLE_HOME
export ORACLE_SID
# Execute BaaN Job #
/baan/home/batch/c430/rc.startjob PITG01
# Log Check #
/usr/bin/echo 'Check Date' >> /var/cron/log_bsp/log.dmp
/usr/bin/date >> /var/cron/log_bsp/log.dmp
/usr/bin/echo '-------------------------------------------' >>/var/cron/log_bsp/
log.dmp
#/usr/bin/grep "n't" /baan/home/bsp/tbldump/bkup/1_Mon/x_pre.err >> /var/cron/log_bsp/log.dmp
##########
Any suggestions are appreciated.
Thanks!
Wu