Asynchronous shell commands

后端 未结 5 1595
一向
一向 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:20

    Alternatively, after you got the program running, you can hit Ctrl-Z which stops your program and then type

    bg

    which puts your last stopped program in the background. (Useful if your started something without '&' and still want it in the backgroung without restarting it)

提交回复
热议问题