-1

Is it possible to enter into detached screen, do command, and detach again via one shell command?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Adrian
  • 532
  • 1
  • 7
  • 16

1 Answers1

0

I solved this problem using tmux.

Start screen command:

tmux new -s nameOfScreen

And for running commands on detached screen I used send-keys method:

tmux send-keys -t tab "command" Enter

Adrian
  • 532
  • 1
  • 7
  • 16