Working with long-running jobs on Linux servers
Here a some tips if you're working with long-running jobs on Linux servers. I'm assuming that you log in to the server using ssh.
You should install and use a terminal multiplexer like tmux or screen on the server. This will enable you to disconnect without stopping you job, and (even more important) to re-connect and check the progress.
When running you job, prefix the command with date&&time, this will write-out the starting date and time and (when the job is done) write-out the elapsed time.
Below is an example of how it will look:
$ date&&time long_running_script.sh Wed Mar 28 15:49:22 CEST 2018 real 1093m57.130s user 1427m45.140s sys 35m49.636s $










