0
1
I was starting jboss recently in background in Linux and saw that if you run command as follows:
nohup ./startjboss.sh > server.log &
Output is :
[1] 18835
[root@cnt5-01b downloads]#
The terminal for the next command appears directly.
However, if I run the command as follows:
nohup ./startjboss.sh & > server.log
Then the output is:
[1] 19223
[root@cnt5-01b downloads]# nohup: appending output to `nohup.out'
Then, when I press enter, it returns to:
[root@cnt5-01b downloads]#
which is the terminal where I can write next command.
Why is there a difference in behavior (an extra Enter needed)? This is a very small thing, not even a problem; but I just want to know.