My crontab got error [message #211954] |
Wed, 03 January 2007 03:50 |
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 #212123 is a reply to message #212121] |
Wed, 03 January 2007 19:33 |
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:
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 |
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 |
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...
|
|
|