I setup my start_java.sh script as follows:
#!/bin/sh
echo "starting process"
nohup java XXX
When I run:
[root@box ~]# bash start_java.sh
it prints
starting process
However if I run
nohup java XXX
It prints:
[1] 19852
Why do I not see this when I run the bash script? I want to see
starting process
[1] 19852