Friday, April 19, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 58633  / 2 Years ago, tue, september 27, 2022, 6:43:08

Consider the following nohup execution:



nohup script.sh > script.out &


Is there a way to log off the terminal, reconnect, bring the process back to foreground and interact with it using the keyboard?


More From » command-line

 Answers
1

If you wanted to start a script, have it run without the output bothering your terminal and then bring it up later to interact with it, you might want to take a look at a terminal multiplexer. Depending on your system I would recommend tmux or screen. You can find some info on how to use them in the links below:



tmux:





screen:





edit: added links for tmux primers


[#43824] Thursday, September 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ngthmated

Total Points: 12
Total Questions: 115
Total Answers: 113

Location: Saint Vincent and the Grenadines
Member since Wed, Apr 21, 2021
3 Years ago
;