Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Job Entry Shell on Windows AND linux using Insert script

  1. #1
    Join Date
    Dec 2009
    Posts
    332

    Default Job Entry Shell on Windows AND linux using Insert script

    Job Entry Shell on Windows AND linux using Insert script

    We develop Pentaho PDI jobs on Windows XP for execution on Windows XP and linux. Generally things work remarkably well, but there is one item that is annoying and I am optimistic that there is a good solution.

    We have several jobs which include the Shell entries which utilize Insert script to perform a variety of actions for linux. All of these Insert script commands are invalid on Windows.

    Is there some convenient way to omit running these commands when the job is executed under Windows?

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    The JavaScript job entry has a variable set called "is_windows".
    So a true result after the job entry can go to a dummy and the other to the scripts.
    HTH,
    Matt

    http://wiki.pentaho.com/display/EAI/...ript+job+entry

  3. #3
    Join Date
    Dec 2009
    Posts
    332

    Default

    Quite convenient indeed. That should do it.

    Thanks Matt.

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.