0

How can I start gnu screen with several different commands in several different windows?

i.e., (pseudocode)

screen -window1="ping google.com" -window2="vim ~/secret_document.txt"
ʞɔıu
  • 47,148
  • 35
  • 106
  • 149

1 Answers1

0

You could create a screen config file, e.g.

screen -t "window1" ping google.com
screen -t "window2" vim ~/secret_document.txt

Then start screen with the config file:

screen -c configfile
Tim Radcliffe
  • 1,883
  • 2
  • 20
  • 29