一個shell script裡能否不同身分執行? - Linux

By Zanna
at 2012-01-14T21:04
at 2012-01-14T21:04
Table of Contents
我一個 A程式 要運作需要 B程式 存在..
我寫一個腳本判斷 B程式 是否還在執行,若有離開,
若沒有則重新執行 B程式 ,接著重新啟動 A程式
不過現在我想用(一般使用者)的身分去重新執行 B程式
再用(超級使用者)的身分重新啟動 A程式
能在腳本上達到這個目的嗎?
--
我寫一個腳本判斷 B程式 是否還在執行,若有離開,
若沒有則重新執行 B程式 ,接著重新啟動 A程式
不過現在我想用(一般使用者)的身分去重新執行 B程式
再用(超級使用者)的身分重新啟動 A程式
能在腳本上達到這個目的嗎?
--
Tags:
Linux
All Comments

By Necoo
at 2012-01-19T11:10
at 2012-01-19T11:10

By Thomas
at 2012-01-23T14:11
at 2012-01-23T14:11

By Delia
at 2012-01-25T15:54
at 2012-01-25T15:54

By Heather
at 2012-01-27T17:29
at 2012-01-27T17:29

By Kumar
at 2012-01-30T02:30
at 2012-01-30T02:30

By Kyle
at 2012-02-01T11:33
at 2012-02-01T11:33

By Dinah
at 2012-02-04T23:25
at 2012-02-04T23:25

By Agnes
at 2012-02-08T09:37
at 2012-02-08T09:37

By Lydia
at 2012-02-12T09:54
at 2012-02-12T09:54

By Cara
at 2012-02-12T13:58
at 2012-02-12T13:58

By Daniel
at 2012-02-17T02:53
at 2012-02-17T02:53

By Hedwig
at 2012-02-17T18:28
at 2012-02-17T18:28

By Todd Johnson
at 2012-02-20T06:15
at 2012-02-20T06:15

By Jake
at 2012-02-21T07:09
at 2012-02-21T07:09

By Poppy
at 2012-02-22T14:28
at 2012-02-22T14:28

By Cara
at 2012-02-26T08:44
at 2012-02-26T08:44

By Kama
at 2012-02-29T08:15
at 2012-02-29T08:15

By Isabella
at 2012-03-04T12:51
at 2012-03-04T12:51

By Vanessa
at 2012-03-08T15:22
at 2012-03-08T15:22
Related Posts
Qt該下載哪一個

By Hamiltion
at 2012-01-14T19:37
at 2012-01-14T19:37
請叫關於編譯driver for ARM板的問題

By Annie
at 2012-01-14T19:10
at 2012-01-14T19:10
CentOS 5.7 一些更新問題

By Rachel
at 2012-01-13T21:57
at 2012-01-13T21:57
betaradio v1.4 released

By Bethany
at 2012-01-13T18:00
at 2012-01-13T18:00
PHP下指令的問題..

By Audriana
at 2012-01-13T17:51
at 2012-01-13T17:51