background process outputs to the console
- by broiyan
Suppose test.sh is a bash script that is empty or contains only exit 0. When the script is backgrounded, what is the significance of the 1 and 16320 printed to the console?
b@sam:~/Documents/bashscripts$ ./test.sh &
[1] 16320
b@sam:~/Documents/bashscripts$
[1]+ Done ./test.sh
b@sam:~/Documents/bashscripts$
Then if user hits ENTER at the command prompt, as illustrated above, another line appears and it shows this
[1]+ Done ./test.sh
What is the significance of the 1 digit and the + symbol?