LoginSignup
17
16

More than 5 years have passed since last update.

ssh越しにバックグラウンドプロセスの実行

Posted at
ssh localhost "nohup sleep 10 > /dev/null 2>&1 &" > /dev/null 2>&1

nohupして出力が返ってこないようにすれば良い。
ssh先のサーバーにスクリプト作っておいてそのスクリプト叩くとかがいいですかね

17
16
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
17
16