Created
August 19, 2014 05:58
-
-
Save filviu/ce55d3f4a749c4c93c26 to your computer and use it in GitHub Desktop.
script screen to create multiple windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
screen -dmS servers -T xterm -t "http" sh -c 'cd /servers/start/httpo;run.sh' | |
screen -T xterm -S "servers" -X screen screen -t "sql" sh -c 'cd /servers/start/sql;run.sh' | |
# The "-T xterm" switch isn't really necessary, unless you plan to use curses-based programs from inside the screen (mc, less, etc.). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment