Changes between Version 4 and Version 5 of jazz/10-07-26


Ignore:
Timestamp:
Jul 26, 2010, 9:15:29 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-07-26

    v4 v5  
    11= 2010-07-26 =
     2
     3== Linux : SSH ==
     4
     5 * [備忘] 今天 casper 問我怎麼讓 ssh 下完遠端指令後,只有遠端有程序,本地端不會有程序。試了幾種方法,包括以前寫過的,把遠端程式寫成背景執行,還有 nohup 這個指令,都沒什麼效果。[http://www.snailbook.com/faq/background-jobs.auto.html 這裡有一篇文章說明了這是 OpenSSH 的實作造成的影響],當然網路上也是一堆解法。看了一些討論[http://stackoverflow.com/questions/29142/getting-ssh-to-execute-a-command-in-the-background-on-target-machine 1][http://www.developerweb.net/forum/showthread.php?t=5001 2][http://www.derkeiler.com/Mailing-Lists/securityfocus/Secure_Shell/2003-10/0159.html 3],最後的做法是這兩種寫法:
     6{{{
     7$ ssh remsystem 'nohup command </dev/null >/dev/null 2>&1 &'
     8$ ssh remsystem 'command </dev/null >&/dev/null &'
     9}}}
    210
    311== File System : Data Deduplication ==