nohup keeps a command running after logout.
nohup
Pass command-line arguments as usual.
Run in the background: append &.
&
Redirect to a file:
> <path>