【问题标题】:Korn Shell path not found未找到 Korn Shell 路径
【发布时间】:2020-03-12 13:40:07
【问题描述】:

我遇到了调用其他脚本的脚本 ksh (mainScript) 的问题。

主脚本:

调用 ./folder1/folder2/first.sh

我得到的错误:

 ./folder1/folder2/first.sh not found [No such file or directory]

我用 ls -l /folder1/folder2/first.sh 验证,我看到脚本存在。

谢谢你帮助我。

【问题讨论】:

    标签: linux path ksh


    【解决方案1】:

    从您的路径中删除. 并提供对该文件的执行权限,然后您将能够运行该脚本。喜欢

    [root@localhost#] chmod +x /folder1/folder2/first.sh

    然后运行

    [root@localhost#] /folder1/folder2/first.sh

    此外,您可以使用以下命令运行脚本:

    ksh /folder1/folder2/first.shsh /folder1/folder2/first.shbash /folder1/folder2/first.sh etc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-23
      • 2017-07-30
      • 2013-04-02
      • 1970-01-01
      • 1970-01-01
      • 2021-09-17
      • 2016-06-05
      • 2013-09-04
      相关资源
      最近更新 更多