æãããã°ã¢ã¦ãå¾ãã³ãã³ããå®è¡ãç¶ãããå ´åãã¨ããã¨ã³ããªã§"nohup"ã³ãã³ãã®ä½¿ãæ¹ãæ¸ããã®ã§ãããnohupãå¿ããæã¯ã©ãããã°ããã®ããã¨ãã話ã æå®ããããã¯ã°ã©ã¦ã³ãããã»ã¹ããã¼ã¢ã³åããããã«disownã¨ããbashã®çµã¿è¾¼ã¿ã³ãã³ããããã¾ãã #!/bin/sh while :; do sleep 5 done ãããã«ä¸è¨ã®ãããªã¹ã¯ãªãããç¨æãã¦ã"&"ä»ã§å®è¡ãã¾ãã $ sh test.sh & [1] 2692 $ jobs [1]+ å®è¡ä¸ sh test.sh &次ã«ãdisownã³ãã³ããå®è¡ãã¾ããå¼æ°ã«ã¯"%"+ã¸ã§ãçªå·ãæå®ãã¾ãã(ä¸è¨ä¾ã ã¨ã¸ã§ãçªå·ã¯"1") $ disown %1 $ jobs $ ãã®éããpsã³ãã³ãã®çµæã¯â $ ps -edf ã»ã»ã»çç¥ã»ã»ã» nami 2692 1708 0 02:25 pts
{{#tags}}- {{label}}
{{/tags}}