Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Shell step execution in data-integration-server/tomcat/bin

  1. #1
    Join Date
    May 2010
    Posts
    21

    Default Shell step execution in data-integration-server/tomcat/bin

    Hello all,

    when I execute a shell step in a job the execution directory is always
    data-integration-server/tomcat/bin
    Inside the step I can define the working directory, but it does not mean where the script should be, only where it starts to execute.

    Is there a possibility not to start it in data-integration-server/tomcat/bin?

    In this directory all the other scripts are in and I am a clean man, you know!

    Thanks in advance,
    Mathew

  2. #2
    Join Date
    Oct 2006
    Posts
    817

    Default

    data-integration-server/tomcat/bin is the working directory. You can use the following bash commands to get the relative and absolute directory paths containing your script.

    Code:
    DIR_REL=`dirname $0`
    cd $DIR_REL
    ABS_DIR=`pwd`
    cd -

Tags for this Thread

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.