can't see nohup command's output when used with ssh can't see nohup command's output when used with ssh unix unix

can't see nohup command's output when used with ssh


nohup java -jar blah.jar > /dev/null 2>&1 

In this example, you are redirecting your output from stderr to stdout, but you have already redirected your output from stdout to /dev/null.

The result is that you are piping both stdout and stderr to /dev/null

Output only goes to nohup.out if it has not already been redirected.

It is likely you are not using the same redirection parameters when running the command from the shell.