gpt4 book ai didi

linux - 为什么 SunOS 说它不能执行这个 KornShell 脚本?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:24:46 26 4
gpt4 key购买 nike

<分区>

我在服务器 A 中有一个 KornShell (ksh) 脚本,它将在服务器 B 中运行一个脚本。

    #!/bin/ksh/
ssh user@server "/path/script.sh"

脚本权限如下:

 -rwxrwxrwx   1 user    dba           75 Jun 11 10:00 script.sh

我检查了/bin 中是否存在“ksh”及其存在。 (庆典不是)

当我尝试运行我得到的脚本时 ./script.sh: 无法执行

可能会发生什么?我手动测试了 ssh 命令,它有效。

它是一个 SunOS 系统。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com