0

I know I can execute a command on a remote machine using "ssh ip_addr "command"", and this will return after 'command' exits. How can I execute a command in the background on the remote machine so that I don't need to wait for the 'command' to exits? I tried ssh ipaddr "command &" but it didn't seems to work. An alternative is ssh ipaddr "command" & which put the ssh command in the background but it doesn't look clean. Suggestions?

Wang Tuma
  • 893
  • 5
  • 14
  • 24

0 Answers0