Jump to content

Ending ssh, but leave program running?


xrad

Recommended Posts

If im using ssh and start a program that I need to run after i leave ssh, like reaver or something that needs to run a long time. I would also like to be able to log back in to check the status of reaver (or any other program) at any time.

How would i do that?

Link to comment
Share on other sites

The easiest way to do this, if you need to check back in with the program is to install screen:

opkg update
opkg install screen

Then run screen and run reaver inside of it. I am not going to explain how to use screen, it's a very very common tool and you'll find many guides on it with a quick Google search.

Best Regards,

Sebkinne

Link to comment
Share on other sites

You could open a screen session and run reaver in it.

screen -S 'name_of your_session' - Starts a session with that name.

You would run reaver and hit Ctrl+a+d to detach from the session, this will run even when you are logged out.

To resume the session, just use the command: screen -r 'name_of_your_session'.

For more information on the screen command, here is the manpage: http://www.gnu.org/software/screen/manual/screen.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...