20i Domains

Dropcatch Software - SSH Keepalive with TMAX

Discussion in 'Drop catching Domain Names' started by Transcom ISP, Aug 20, 2021.

  1. Transcom ISP

    Transcom ISP Active Member

    Joined:
    Jun 2019
    Posts:
    75
    Likes Received:
    13
    Lots of questions on this, how do you keep an SSH session running in the background even if you shutdown your PC / Device...

    Pretty easy, lots of methods, heres one :

    1. Login to an SSH shell as normal
    2. yum instal tmux or apt-get tmux (only need to do this once)
    3. run tmux
    4. run the dropcatch software, ie, php run.php
    5. type tmax detach or CTRL B then D
    6. you can now shut down / exit the shell
    7. To rejoin, run the SSH, type tmux attach

    If your running the software with 4 shells, then use tmax to open all 4 and run all 4 in the background, theres a good help file for this online at :

    https://www.tecmint.com/tmux-to-access-multiple-linux-terminals-inside-a-single-console/

    Cheers
    Bill
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    articles.co.uk
     
  3. webber

    webber Active Member

    Joined:
    Sep 2019
    Posts:
    530
    Likes Received:
    139
    This works best for me
    Code:
    screen -D -R
    https://linuxize.com/post/how-to-use-linux-screen/
    You create a new screen and run all scripts in it.
    You can leave the screen with Ctrl+A D and scripts will carry on running even if you close the shell.
    This is also good because it preserves the screen output until you log back in.

    A simpler option is to send the script to the background by adding & at the end of the command