LoginSignup
23
30

More than 5 years have passed since last update.

ログアウトしても処理を続けたい

Posted at

command

nohupコマンドを使う事でログアウトしても処理を続けさせる事が可能

  • Client - Server(ssh) sshで入り、そのまま処理を終日回しておきたい等で有効
  • Terminalにおいて、TimeoutしてしまいPipeが切れてしまった場合等で有効

実行例

  • & をつけてバックグラウンドで実行
nohup ./script.sh &
  • nohup.out を出力させたくない場合
nohup ./script.sh > /dev/null 2>&1 &
23
30
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
23
30