qcloud
V2EX  ›  问与答

FreeBSD 10.1 怎么不能执行脚本呢?

  •  
  •   qcloud · May 25, 2016 · 1759 views
    This topic created in 3666 days ago, the information mentioned may be changed or developed.

    FreeBSD 10.1 执行 sh 脚本 比如./install.sh 提示说命令找不到,这咋办。。。

    8 replies    2016-05-25 13:50:54 +08:00
    abutter
        1
    abutter  
       May 25, 2016   ❤️ 1
    designer
        2
    designer  
       May 25, 2016 via iPhone
    总会看成 Free PSD
    qcloud
        3
    qcloud  
    OP
       May 25, 2016
    @abutter 执行这条命令怎么不执行呢,出来这个:-rwxrwxrwx 1 root wheel 32832 May 22 15:20 install.sh
    abutter
        4
    abutter  
       May 25, 2016
    @qcloud whoami
    qcloud
        5
    qcloud  
    OP
       May 25, 2016
    @abutter 不应该执行吗?就像./这样
    abutter
        6
    abutter  
       May 25, 2016
    @qcloud 都有执行权限。那么 head -n 5 install.sh 呢。
    abutter
        7
    abutter  
       May 25, 2016   ❤️ 1
    试试 sh ./install.sh
    qcloud
        8
    qcloud  
    OP
       May 25, 2016
    @abutter sh ./install.sh 是可以的,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3255 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:11 · PVG 20:11 · LAX 05:11 · JFK 08:11
    ♥ Do have faith in what you're doing.