In my script I SSHed a host and tried to run two java programs. The first java program runs with nohup and & at the end. After that I try to run another java program but it gives syntax error. I guess it has something to do with the &. I do not want to ssh again.
ssh $host "nohup java -cp daemon.jar:. runtime.daemon.MPJDaemon >>/logs/$host-wrapper.log 2>&1 &;java Health"
It gives bash: -c: line 0: syntax error near unexpected token `;
Any ideas