I am using the
bash shell. I frequently use
nohup to ensure that my processes are not stopped when I close the shell/terminal that started them. I use a syntax like:
nohup gives the message:
nohup: ignoring input and appending output to 'nohup.out'
nohup gives no more output to the screen; it is all written to
Frequently, however, I would like to monitor the progress of my computation. I can do this by reading
tail, but this can be time consuming to do a lot, especially when my computations take several hours.
Is there any way that I can print the output to both
nohup.out (in case I lose internet connection and thus the terminal that started the process is closed) and to the screen? Thanks for your time.