Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: PDI 6.0.1 kitchen.sh not returning proper exit code on Ubuntu 14.04, but does on OSX

  1. #1

    Default PDI 6.0.1 kitchen.sh not returning proper exit code on Ubuntu 14.04, but does on OSX

    Hi all,

    I'm running PDI 6.0.1 and can't get kitchen.sh to return a code/exit code on Ubuntu 14.04. It runs fine on my Mac OSX. I use Java 1.7 in both situations.

    When running kitchen.sh without any parameters on my Mac I get exit code 9. When doing the same on Ubuntu 14.04 the exit code is 0.

    Any idea as to why this happens?

    Kind regards,

    Eric

  2. #2

    Default

    Nevermind. I found the answer myself already...

    spoon.sh contain the following:

    if [ $OS = "linux" ]; then
    "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" 2>&1 | grep -viE "Gtk-WARNING|GLib-GObject|GLib-CRITICAL|^$"
    else
    "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}"
    fi

    Apparently if on Linux, the exit code gets piped away.

  3. #3
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    If you look around the forum a bit, there's a couple of lines of edit that you can use that will provide the correct exit codes on Linux.

    One of these days I'll get a Github account and submit it as a pull request.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.