开发者

Creating a process from inside a Linux bash script

开发者 https://www.devze.com 2022-12-07 21:06 出处:网络
What I want to do is to开发者_StackOverflow create a child process inside a script, and the script is not blocked and will continue to run, and

What I want to do is to开发者_StackOverflow create a child process inside a script, and

  1. the script is not blocked and will continue to run, and
  2. the child process output (from printf in C code) prints to the shell, and
  3. the child process is killed when the script ends.

When I ran "command &", it did 1) and 2). When I ran "nohup command", it did 1).

Are there any commands that I can use for this purpose?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号