Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

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:
    215
    Likes Received:
    29
    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. webber

    webber Active Member

    Joined:
    Sep 2019
    Posts:
    766
    Likes Received:
    235
    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