在rc.local或開機過程執行read指令 - Linux

By Mia
at 2018-03-21T23:28
at 2018-03-21T23:28
Table of Contents
請問大家有沒有在 rc.local 或開機過程中成功執行 read 這個指令 ?
我的需求是在開機過程中製作一個選單,讓使用者在10秒內輸入他要執行的選項,再根據
他的選項執行我寫好的 script。
現在遇到的問題是在 rc.local 加入「 read -p "Please input item" -t 10 cmd 」這
個指令,卻沒有任何作用,直接跳過,我上網 google 到一篇相關討論
https://unix.stackexchange.com/questions/105640/rc-local-with-read-will-not-echo-key-strokes
縮網址
http://0rz.tw/8W0Hi
照他內文講的方法做,我還是沒辦法解決,嘗試很多方法都不行。想請問有沒有人有遇過
相同的問題或需求,麻煩指點我怎麼解決這問題,謝謝。
我的作業系統是 Ubuntu 16.04。
--
Tags:
Linux
All Comments

By Sandy
at 2018-03-24T09:11
at 2018-03-24T09:11

By Caitlin
at 2018-03-28T18:08
at 2018-03-28T18:08

By Caroline
at 2018-03-31T11:54
at 2018-03-31T11:54

By Jessica
at 2018-04-01T22:48
at 2018-04-01T22:48

By Joseph
at 2018-04-05T13:15
at 2018-04-05T13:15

By Megan
at 2018-04-08T22:15
at 2018-04-08T22:15
Related Posts
edubuntu無法執行jnlp(JAVA)

By Hedwig
at 2018-03-21T05:59
at 2018-03-21T05:59
ubuntu 16.04 終端機預設一直開啟nano

By Susan
at 2018-03-21T02:45
at 2018-03-21T02:45
請問有辦法一次查詢所有檔案的ACL設定嗎?

By Una
at 2018-03-20T16:44
at 2018-03-20T16:44
git使用ssh,可否禁止看到上層資料

By Michael
at 2018-03-20T15:00
at 2018-03-20T15:00
ubuntu 16.04 suspend再開啟後,變成黑屏

By Catherine
at 2018-03-20T14:38
at 2018-03-20T14:38