「Linux」nohupでバックグランドでジョブを実行する方法

2021年4月15日

書式
nohup コマンド
使用例
# nohup ping localhost >test02.txt &
[1] 2631
# nohup: 標準入力を無視し、標準エラー出力を標準出力にリダ イレクトします
# cat test02.txt
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.060 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.138 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.137 ms
64 bytes from localhost (::1): icmp_seq=4 ttl=64 time=0.138 ms

Linux

Posted by arkgame