This is still blocking:
ssh host nohup cmd
This still leaves the connection open:
ssh host nohup cmd &
migrated from stackoverflow.com Mar 22 '10 at 23:39
This question came from our site for professional and enthusiast programmers.
This seems to work:
In my example, the tail command is still running after I've closed the connection.
edit this does not seems to work as
This may be related to the fact that it's writing to
edit 2 works fine when redirecting the tail command to /dev/null ^_^
Just be careful and don't write to stderr / stdout, or redirect the output to a local destination
The following will work:
(at least if you are not prompted for a password). In case you are I don't see a easy way to do it.