Run Sagemath codes on a cluster.
I am running a Sagemath program on a cluster. The way I do this is to use sage command line on a terminal and copy program to the terminal. But the problem is when I close the terminal, the program stops. How to run the program on a cluster without stopping when we close the terminal? Thank you very much.
Edit: when I tried to use screen command and copy the codes to sage command lines. The following errors appears.