如何隱藏process的參數 - Linux

By Ursula
at 2013-06-12T23:18
at 2013-06-12T23:18
Table of Contents
我有一隻程式miner(binary執行檔),執行的時候需要附加參數username與password,
如下:./miner -u user -p 12345,但是這隻程式是在共用電腦執行,其它使用者只要
使用top, htop或是ps指頁就可以看到username/password,請問有沒有什麼方法可以
在執行時,只顯示miner,而不顯示後面的參數?
我有試過用c的system("miner -u user -p 12345")指令compile程新的執行檔,
但是在執行時仍然會顯示出參數。
--
如下:./miner -u user -p 12345,但是這隻程式是在共用電腦執行,其它使用者只要
使用top, htop或是ps指頁就可以看到username/password,請問有沒有什麼方法可以
在執行時,只顯示miner,而不顯示後面的參數?
我有試過用c的system("miner -u user -p 12345")指令compile程新的執行檔,
但是在執行時仍然會顯示出參數。
--
Tags:
Linux
All Comments

By Robert
at 2013-06-14T18:42
at 2013-06-14T18:42

By Linda
at 2013-06-18T05:08
at 2013-06-18T05:08

By Tristan Cohan
at 2013-06-20T09:27
at 2013-06-20T09:27

By Catherine
at 2013-06-21T02:53
at 2013-06-21T02:53

By Edwina
at 2013-06-23T13:03
at 2013-06-23T13:03

By Zenobia
at 2013-06-24T03:39
at 2013-06-24T03:39

By Hedda
at 2013-06-24T19:50
at 2013-06-24T19:50

By Enid
at 2013-06-27T16:04
at 2013-06-27T16:04

By Suhail Hany
at 2013-06-30T05:56
at 2013-06-30T05:56

By Kristin
at 2013-06-30T21:06
at 2013-06-30T21:06

By Lucy
at 2013-07-03T22:58
at 2013-07-03T22:58
Related Posts
師生之間FTP權限的設計問題

By Tom
at 2013-06-12T19:25
at 2013-06-12T19:25
pidgin,facebook 不停斷線

By Damian
at 2013-06-12T18:16
at 2013-06-12T18:16
openstack的nova-compute能使用固定IP嗎

By Lily
at 2013-06-12T13:23
at 2013-06-12T13:23
選擇適用筆電

By Franklin
at 2013-06-12T00:06
at 2013-06-12T00:06
開機設定問題grub

By Caroline
at 2013-06-11T23:58
at 2013-06-11T23:58