How do I run screen and run a command inside of screen automatically?

CosmicWanderer

New Member
Joined
Feb 17, 2026
Messages
12
Reaction score
11
Credits
108
I have a game server that I want to automatically run whenever I start up the physical server. For a while I just used systemd to start the server directly, but this game server has a console that I want to be able to access at runtime. Ideally, I would like to have some sort of setup where a detached screen is created, the program is run, and I can attach the screen when I want to use it. Is that possible and if so, how do I do it?
 


Follow Linux.org

Members online


Top