Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Transcom.uk Dropcatch Software - SSH Keepalive with TMAX

Transcom ISPTranscom ISP is verified member.

Acorn Moderator
ICANN Accredited Registrar
Nominet Member
Nominet Registrar
Hosting Provider
Backorder Service
Joined
Jun 15, 2019
Posts
236
Reaction score
75
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
 
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
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Helmuts @ HelmutsHelmuts is verified member.: Good morning all
      Top Bottom