How to prevent a background process from being stopped after closing SSH client in Linux

前端 未结 20 1589
悲&欢浪女
悲&欢浪女 2020-11-22 06:16

I\'m working on a Linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (

20条回答
  •  萌比男神i
    2020-11-22 07:11

    Personally, I like the 'batch' command.

    $ batch
    > mycommand -x arg1 -y arg2 -z arg3
    > ^D
    

    This stuffs it in to the background, and then mails the results to you. It's a part of cron.

提交回复
热议问题