-bash 的問題 - Linux

Mason avatar
By Mason
at 2008-07-25T17:14

Table of Contents

請問各位大大~~~
小弟寫了一個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

請問還有什麼要設定的,謝謝您的回答




--
Tags: Linux

All Comments

Kristin avatar
By Kristin
at 2008-07-28T08:03
你大概在哪兒執行 rc.local, 但是他壓根兒找不到 rc.local

Ubuntu 8.04 桌面磁碟機弄不掉

Kumar avatar
By Kumar
at 2008-07-25T15:31
桌面有4個磁碟機 是硬碟本身分割出來的 分別顯示xx.xGB 媒體 按右鍵也沒有弄到別的地方的功能 請問有沒其他辦法可以解決呢? 一直放在桌面覺得很礙眼.... -- - ...

有關vsftpd設定問題

Queena avatar
By Queena
at 2008-07-25T15:10
各位大大~~ 小弟安裝一個ftp server 但是在安裝後資料無法上傳/下載不知那裡有問題?? 上傳: mput AUTOEXEC.BAT? y 200 PORT command successful 553 Could not create file. ^^^^^^^^^^^^^^^^^^^ ...

samba問題

Delia avatar
By Delia
at 2008-07-25T14:55
我在suse上想設一個無需帳密即可使用samba的空間 於是我參照書上在smb.conf中加入 [global] workgroup =NCLP security =share .... [tmp] path=/tmp publ ...

linux 支援問題

Emily avatar
By Emily
at 2008-07-25T11:48
這台為套裝電腦,跟中信局購買的 產品:華碩 M5120/ AS-D777 規格:LGA775 架構支援 Dual cpu E2180 2G 記憶體: 4G DDR2 800Hz 主機板:P5KPL-VM 我灌read hat-enterprise linux WS3,但灌不起來 所以我想請 ...

可愛的賽車遊戲

Yedda avatar
By Yedda
at 2008-07-25T11:35
可愛的賽車遊戲,單機或網路對戰皆可。 六種模式: * Stock race * Rally * F3 race * F3000 race * Endurance race * F1 races (16 tracks) 執行的作業平臺: Windo ...