I'm trying to log the output of a remote ssh command.
I'm current using
ssh USER@IP | tee -a ~/random.log
and then run the command I need to run on the remote server which then logs to random.log.
I need this to be able to run in the background, currently it exits when I quit/close terminal.
I cannot log on the remote server as it is a router with very little free space (>800kb).