[問題] -bash 的問題

看板Linux作者 (b8888)時間17年前 (2008/07/25 17:14), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
請問各位大大~~~ 小弟寫了一個shell #!/bin/sh #!/bin/bash set env . ./setenv # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local mount --bind /var/www/html/cal /home/aaaa 在command 模式下執行ok 但是以shell 執行時卻出現 -bash: rc.local: command not found 請問還有什麼要設定的,謝謝您的回答 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.29.241.8

07/27 09:10, , 1F
你大概在哪兒執行 rc.local, 但是他壓根兒找不到 rc.local
07/27 09:10, 1F
文章代碼(AID): #18YPcBua (Linux)
文章代碼(AID): #18YPcBua (Linux)