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
- the script is not blocked and will continue to run, and
- the child process output (from printf in C code) prints to the shell, and
- 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?
精彩评论