If I SSH into unraid to run a command, say a copy that will take ages, can I close the terminal window?


Recommended Posts

If I SSH into unraid to run a command, say  a copy that will take ages, can I close the terminal window and still have the command complete. As far as I know if I kill the terminal I have connected on, it will also kill the processes I am running in that terminal on the unraid server. Meaning I need to keep the terminal window open until the copy finishes....

 

Is there a way to SSH into the server, run a command then close my connection terminal and still have the commands running on the server?

Link to comment
18 hours ago, questionbot said:

Is there a way to SSH into the server, run a command then close my connection terminal and still have the commands running on the server?

Install screen from the Nerd Pack, start a screen session, run commands, close terminal window, reopen terminal and type screen -r to reattach to running screen session.  When process finishes, close screen session.

 

Edited by Hoopster
  • Like 1
Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.