Based on a conversation with some HPC specialists at work and some Google search work on this issue (I also wanted to renew the job ID), this is not realistic if you have already submitted the job. You can qlogin -q <node name> in node again, but you cannot resume work on the shell screen.
If you plan to start a new qlogin task, but would like to resume it in the future, you can use screen to do this.
Before writing qlogin on the command line on the node interface, write screen . It should completely clear the terminal screen.
Now qlogin and enter your script job interactively.
Once your work has started and you want to leave a little, press and hold Cntl while you press A and D. It should be said that your screen has been disconnected and returned to the node interface. If you are qstat now, you should see that your work is running.
If you want to resume the job identifier (see the current process on the terminal screen), write screen -r in the node interface. You can again see your current process in the terminal.
Note. If you do this several times, and you accumulate several screens randomly (happens to me every time), when you screen -r you will get several options instead of automatically resuming the one you want. To try each one, type screen -r <name of screen listed> one at a time until you find the one you want (disconnect as described above). To get rid of extra screens, write screen -D -r <name> .
Hope this helps.
source share