I have a question on the use of
nohup in an
ssh session. During more than three years my java software executed the following command daily using a remote ssh session:
cd some_path; chmod 777 script.sh; ./script.sh
the content of script is:
nohup java java_command parameters &
It's simple and working perfectly all the time in red hat machines.
In a new software installation using the same environment the command is not working. It is also not working if I execute it manually from any remote ssh session. However, if I change the content of
script.sh, removing the
&, then the command works properly.
What can be the problem? The ssh settings are the same. The only difference that I found is that
0012 in the new installation and in the original installation it was
Additional info: The original installation is a RHEL 5.4 and the new installation is a RHEL 6.3. Is the 6.3 version more restrictive by default?