running ssh process in background gets paused

前端 未结 2 620
-上瘾入骨i
-上瘾入骨i 2021-01-22 08:35

I have some scripts that I\'m developing on a vm but sometimes needs to run on a production server to be properly tested.

I need the output from the scripts for debuggi

2条回答
  •  灰色年华
    2021-01-22 08:49

    When a background process attempts to read from standard input, it is sent a signal which suspends it. This is so the user can bring the process to the foreground again and provide the necessary input.

    If no input needs to be provided, you can redirect the standard input from /dev/null, either when calling test_remote or in cmd.

提交回复
热议问题