I am currently setting up a server and there are different programs I want to run in the background, while still being able to look at the console of each program on demand.
So I'm trying to automatically create a screen for each program and start the program inside of the created screen, but the commands inside the screen dont seem to be running.
I am creating a screen with screen -dmS screen1
and trying to run a command with screen -S screen1 -X cmd
, but the screen doesnt do anything.
For example, if I run screen -S screen1 -X touch /home/user/test
, the file isnt created.
The autostart problem is resolved