开发者

Creating a process from inside a Linux bash script

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜