Home » Infrastructure » Unix » My crontab got error
My crontab got error [message #211954] Wed, 03 January 2007 03:50 Go to next message
erzza
Messages: 3
Registered: January 2007
Junior Member
Hi friends,
I need your help. I want to schedule my proC program that i already compile to be run every day. For your information, i can run my proC program manually but when i put into crontab, the system return an error.


my crontab :
52 15 * * * /opt/u01/app/MILS/product/1.0/src/sap_event_er.csh >/dev/null


Below , is my shell script that call/run SAP_Event(proC program).

sap_event_er.csh
#!/bin/ksh
ORACLE_HOME="/opt/u01/app/MILS/product/1.0" ; export ORACLE_HOME
ORACLE_SID="MILS" ; export ORACLE_SID
PATH=$PATH:/Appl/lib:/Appl/src/epos/bin/
/opt/u01/app/MILS/product/1.0/src/epos/bin/SAP_Event


This is the error message that i got.

Your "cron" job on e4500
/opt/u01/app/MILS/product/1.0/src/sap_event_er.csh >/dev/null

produced the following output:

ld.so.1: /Appl/src/epos/bin/SAP_Event: fatal: librbsbh.so: open failed: No such file or
directory
/opt/u01/app/MILS/product/1.0/src/sap_event_er.csh[4]: 2392 Killed
/opt/u01/app/MILS/product/1.0/src/sap_event_er.csh[5]: syntax error at line 5 : `;;' une
xpected
Re: My crontab got error [message #212079 is a reply to message #211954] Wed, 03 January 2007 12:57 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
From your interactive session - check what your SHLIB_PATH and/or LD_LIBRARY_PATH are set to, and include that in your script.

Re: My crontab got error [message #212121 is a reply to message #211954] Wed, 03 January 2007 19:08 Go to previous messageGo to next message
erzza
Messages: 3
Registered: January 2007
Junior Member
andrew,

can give me some an example...?? what is the purposes..??
sorry i'm new in UNIX.
Re: My crontab got error [message #212123 is a reply to message #212121] Wed, 03 January 2007 19:33 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
SHLIB_PATH and/or LD_LIBRARY_PATH are library path settings. ld.so and librbsbh.so liik like shared library files.

At the prompt, do a:
env | grep LIB


To call SAP code, there will be documented environment settings which need to be in place. I wouldn't guess at it - it's important to get the right environment settings in place and not just copy something which seems to work.
Re: My crontab got error [message #212125 is a reply to message #211954] Wed, 03 January 2007 19:39 Go to previous messageGo to next message
erzza
Messages: 3
Registered: January 2007
Junior Member
andrew,

This is what i got :

CS_SL_LIB_EXT=
CS_LIB_EXT=
MLIB=m
LD_LIBRARY_PATH=/CStalk/lib:/Appl/lib:/opt/u01/app/oracle/product/8.1.7-64/lib:/opt/SUNW
spro/lib:/opt/SUNWspro/SC4.2/lib
RANLIB=
LIB_NSL=-lnsl
LIB_SOCKET=-lsocket
LIB_M=-lm
LIB_OS=-lm -lnsl -lsocket
Re: My crontab got error [message #212320 is a reply to message #211954] Thu, 04 January 2007 12:34 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
Try exporting LD_LIBRARY_PATH=/CStalk/lib:/Appl/lib:/opt/u01/app/oracle/product/8.1.7-64/lib:/opt/SUNW in your script.


But you need to have an understanding of what you include in the path and why...

Previous Topic: How to log into unix box through telnet from a batch file
Next Topic: Database Server - Gap & Impact Analysis (Windows & UNIX)
Goto Forum:
  


Current Time: Mon Nov 25 02:41:20 CST 2024