Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Transcom.uk Dropcatch Software - SSH Keepalive with TMAX

Transcom ISP

Staff member
Joined
Jun 15, 2019
Posts
224
Reaction score
67
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
 

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom