0
0

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 1 year has passed since last update.

ssh接続切断後もバックグラウンドで実行続ける方法

Posted at

手元のWSLからのSSH接続

  • 接続する。
ssh -XC ユーザ名@ホスト名
  • ssh接続を切断する
exit

ssh接続切断後もバックグラウンドで実行続ける方法

  • 計算実行コマンドの最初にnohupをつけて、最後に&をつける。例えばLAMMPSでin.meltを計算する場合。
nohup mpirun -np 12 lmp < in.lmp &
  • ちなみに、実行中に表示されるコマンドラインは自動的にnohup.outに出力される。途中経過を見たい場合は以下。
tail -F nohup.out
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?