Open screen and run some projects and applications

Posted by trex on Ask Ubuntu See other posts from Ask Ubuntu or by trex
Published on 2014-08-21T05:43:59Z Indexed on 2014/08/21 10:30 UTC
Read the original article Hit count: 231

Filed under:
|
|

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.

© Ask Ubuntu or respective owner

Related posts about 14.04

Related posts about gnome