0

I've got a pentaho job which prints out java logger stuff to console if you run it manually. There should be hundreds of lines being logged. I have it scheduled as a cron job, and while the job seems to run fine, the logging stuff isn't being placed in the log file.

I have a start and end echo statement, and those are being writted to the log file.

Batch file:

echo "Starting daily cron run"
export KETTLE_HOME=/opt/appdata/app/
$PENTAHO_HOME/kitchen.sh -rep="APP_UNIX" -job=run_all
echo "Daily cron run completed"

The cron job:

5 3 * * * /home/e_app_s/load_all_etl_unix.sh > schedule.log

What schedule.log looks like:

Starting daily cron run
Daily cron run completed

Anyone see a problem here? Thanks.

2
  • 2
    Where is $PENTAHO_HOME defined? Commented Sep 11, 2013 at 15:53
  • 2
    Almost invariably, when running a job manually works and executing it from cron does not, the cause is a difference between your environment and cron's environment. Commented Sep 11, 2013 at 15:59

1 Answer 1

2

I defined $PENTAHO_HOME explicitely instead of using the variable. It worked.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.