[問題] Shell script 問題
小弟下載 ultraeditor on red hat 5.8
(https://www.ultraedit.com/downloads/uex.html)
因開啟ultraeditor 需用root權限 故撰寫一份shell script 自動sudo -s 後開啟
ultraeditor
內容如下
https://imgur.com/a/ES3ZK
但是執行時卻直接跳回shell konsole
https://imgur.com/a/nY3KX
反而要在shell konsole 先執行sudo -s後 再執行 script
#!/bin/bash
cd ..../uex/bin
./uex
才會開啟
小弟已確認該linux server的sudo -s 不需密碼 請問sudo -s 不能寫在shell script嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.121.28.242
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1512799185.A.E9F.html
→
12/09 14:12,
8年前
, 1F
12/09 14:12, 1F
→
12/09 14:12,
8年前
, 2F
12/09 14:12, 2F
推
12/09 14:50,
8年前
, 3F
12/09 14:50, 3F
→
12/09 14:51,
8年前
, 4F
12/09 14:51, 4F
→
12/09 15:04,
8年前
, 5F
12/09 15:04, 5F
→
12/09 16:25,
8年前
, 6F
12/09 16:25, 6F
推
12/09 16:33,
8年前
, 7F
12/09 16:33, 7F
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章