Asynchronous shell commands

后端 未结 5 1592
一向
一向 2020-12-04 08:48

I\'m trying to use a shell script to start a command. I don\'t care if/when/how/why it finishes. I want the process to start and run, but I want to be able to get back to my

5条回答
  •  醉梦人生
    2020-12-04 09:40

    screen -m -d $command$ starts the command in a detached session. You can use screen -r to attach to the started session. It is a wonderful tool, extremely useful also for remote sessions. Read more at man screen.

提交回复
热议问题