【问题标题】:External process Invoking shell script with java外部进程用java调用shell脚本
【发布时间】:2014-11-12 21:30:27
【问题描述】:

我们有一个shell脚本RunIndexer.sh,内容如下。 indexer.jar 应用程序接受两个参数,即 true 和 true。

java -jar indexer.jar true true

从 shell 执行 shell 脚本可以正常工作。但是当我们让 Informatica 调用它时,它似乎没有做任何事情。我玩了一下脚本,发现 Informatica 能够调用java 并且能够看到indexer.jar;但应用程序根本没有执行。我也在ps -ef 中检查过。

会发生什么? 谢谢

【问题讨论】:

    标签: java shell arguments informatica


    【解决方案1】:

    从 Informatica 命令任务或会话后执行 shell 脚本时,您必须记下以下几点: 1. 给出该脚本的绝对路径。 2. 不要忘记明确提及您希望脚本在其中运行的 shell 名称,即 (#!/bin/sh/)。 3. 如果informatica 尝试运行脚本的用户具有运行java 代码的权限,还可以检查一件事。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-27
      • 1970-01-01
      • 2011-08-29
      • 1970-01-01
      • 2013-09-26
      • 1970-01-01
      相关资源
      最近更新 更多