Shell script 問題 - Linux
By Sierra Rose
at 2017-12-09T13:59
at 2017-12-09T13:59
Table of Contents
小弟下載 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嗎?
--
(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嗎?
--
Tags:
Linux
All Comments
By Annie
at 2017-12-14T01:28
at 2017-12-14T01:28
By Necoo
at 2017-12-17T08:47
at 2017-12-17T08:47
By Dora
at 2017-12-19T10:49
at 2017-12-19T10:49
By Bethany
at 2017-12-23T10:54
at 2017-12-23T10:54
By Edith
at 2017-12-25T20:05
at 2017-12-25T20:05
By Bennie
at 2017-12-29T05:24
at 2017-12-29T05:24
Related Posts
tar 多不同路徑檔,並移除絕對路徑
By Heather
at 2017-12-08T16:05
at 2017-12-08T16:05
centos 5有類似timeout指令嗎?
By Doris
at 2017-12-08T14:23
at 2017-12-08T14:23
啟動icfb遇到問題
By Erin
at 2017-12-08T12:09
at 2017-12-08T12:09
啟動icfb遇到問題
By Kama
at 2017-12-07T18:19
at 2017-12-07T18:19
spyder安裝 遇到lzh_tw 問題
By Lily
at 2017-12-07T15:26
at 2017-12-07T15:26