開機後自動執行script - Linux
By Ingrid
at 2016-03-11T22:24
at 2016-03-11T22:24
Table of Contents
大家好 我想請問一下
我在/home底下寫了一隻script然後a.sh
我希望每次開機以後都會執行這支script
假設內容只有
echo "hello word"
我希望每次打完密碼進來以後他就先執行然後show出hello word
我參考網路上作法
想自動執行一些 shell script或指令可以直接編輯 /etc/rc.local 檔案
所以我就在裡面寫了 bash /home/a.sh
但沒有成功,想請問一下該怎麼做呢?
謝謝大家
--
我在/home底下寫了一隻script然後a.sh
我希望每次開機以後都會執行這支script
假設內容只有
echo "hello word"
我希望每次打完密碼進來以後他就先執行然後show出hello word
我參考網路上作法
想自動執行一些 shell script或指令可以直接編輯 /etc/rc.local 檔案
所以我就在裡面寫了 bash /home/a.sh
但沒有成功,想請問一下該怎麼做呢?
謝謝大家
--
Tags:
Linux
All Comments
By Tristan Cohan
at 2016-03-14T06:30
at 2016-03-14T06:30
By Bethany
at 2016-03-14T19:23
at 2016-03-14T19:23
By Agnes
at 2016-03-17T21:59
at 2016-03-17T21:59
By Sandy
at 2016-03-22T13:42
at 2016-03-22T13:42
By Edwina
at 2016-03-23T01:07
at 2016-03-23T01:07
By Skylar DavisLinda
at 2016-03-23T09:07
at 2016-03-23T09:07
By Frederic
at 2016-03-23T15:27
at 2016-03-23T15:27
By Isla
at 2016-03-24T23:05
at 2016-03-24T23:05
By Freda
at 2016-03-25T05:39
at 2016-03-25T05:39
Related Posts
筆電 雙系統Windows 10+Ubuntu 14.04成功
By Iris
at 2016-03-11T16:37
at 2016-03-11T16:37
tw.archive.ubuntu.com 在英國?
By Elizabeth
at 2016-03-11T11:51
at 2016-03-11T11:51
登入後開terminal以root執行指令
By Isabella
at 2016-03-11T11:21
at 2016-03-11T11:21
請問欲變更檔案內容,卻出現沒有權限
By Callum
at 2016-03-09T08:54
at 2016-03-09T08:54
Ubuntu 14.04安裝時偵測不到OS
By Hazel
at 2016-03-08T23:42
at 2016-03-08T23:42