6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

nohupでコマンド実行時にログ出力をしたくない場合は/dev/nullにリダイレクトすると良い

Posted at

nohupでコマンド実行時にログ出力をしたくない場合は/dev/nullにリダイレクトすると良い
ログサイズが大きくなる場合は解決策になり得る。

nohup some_command >/dev/null 2>&1 &

bash do.shを実行する場合の例

nohup bash do.sh >/dev/null 2>&1 &

参考

nohupコマンドでnohup.outではなく標準出力に出力する方法

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?