script execute by cron problem, but manual ok

Hi;

I'm facing the problem with my script like below

30 0 * * * /data/SCRIPT/LOADLOGS/loadata1.sh 2 1 >> /tmp/loaddata.txt

loadata1.sh calling a another 2 scripts which we need to exe in sequence.
when it perform by cron jon, sometimes it just can process 20 recs or less or nothing but when we re-run each scripts manually, it found 100 recs.

anyone has an experience before ? is it because of the cron or the script itself ? but we execute exactly the same script for both by cron or manual.

pls help... thanks in advance

look into this FAQ

  1. The executing user should get emails if any stdout or stderr was produced.

And in the environment your script runs (exec'd by cron and with minimal environment).....

  1. check your paths (PATH, LD_LIBRARY_PATH etc)

  2. check your environment

just little bit confused..

if the env or path problem, my cron should unable to process at all any recs,
am i right ??
but it seems like inconsistent problem..

We don't know what's in your script.

our script quite complicated to explain in here.. anyway.. thanks for the reply, will check on the env and path, etc.

write a full path of the script which u have called.. then it ok...