Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 462  / 2 Years ago, sun, august 7, 2022, 9:47:37

I have a script name.bash. I want to run it on the server serv@domaine with ssh but I'm afraid to run it directly and close my shell and stop execution.
I read that i can run my bash on the server with screen to overcome these problem. What are the commands I would use please?


More From » bash

 Answers
1

If you have a modern version of ubuntu on the server, then you can use byobu, which is a more updated version of screen.



From your local:



ssh serv@domain
byobu
/path/to/script.whatever


Then if your session drops (or you just close the terminal), you can reconnect with the ssh command and be right back where you were.



You can also set byobu to always be running, which is what I do, by typing byobu-enable.


[#38144] Tuesday, August 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
luringdge

Total Points: 3
Total Questions: 126
Total Answers: 109

Location: India
Member since Sun, Feb 6, 2022
2 Years ago
;