Open screen and run some projects and applications
- by trex
I am a python web developer, I need to run my local 3-4 django projects in screen sessions and need to launch some of my applications like skype, chrome, eclipse and a text file daily status.txt.
Is there any way to write a script to launch all of them by running a shell script only?
#!/bin/bash
#
gnome-terminal -e "screen -dmS myapps"
#(Attach following command to one of the screen)
cd /var/opt/project1
python manage.py runserver 127.0.0.1:8001
#(Attach another command to one of the screen)
cd /var/opt/project2
python manage.py runserver 127.0.0.1:8002
#(Attach another command to one of the screen)
cd /var/opt/project3
python manage.py runserver 127.0.0.1:8003
#start my applications
eclipse
skype
gedit "/home/myname/Desktop/daily status.txt"
[...]
Can one help me to write a shell script to do this.