Skip to content

Instantly share code, notes, and snippets.

@viksit
Created April 20, 2018 21:15
Show Gist options
  • Save viksit/2752126505a9200cf4cbab0b0d5e900f to your computer and use it in GitHub Desktop.
Save viksit/2752126505a9200cf4cbab0b0d5e900f to your computer and use it in GitHub Desktop.
Start screen session with custom script
viksit@gpu3-4-k80:~$ cat startx.sh
screen -AdmS viksit -t tab0 bash
screen -S viksit -X screen -t jup0 bash /home/viksit/j.sh
screen -S viksit -X screen -t tsb0 bash /home/viksit/t.sh
@viksit
Copy link
Author

viksit commented Apr 21, 2018

viksit@gpu3-4-k80-1:~$ cat ~/t.sh
cd /mnt/production/envs/
source myra-env/bin/activate
tensorboard --port=7098 --logdir=/mnt/disks/large/models

viksit@gpu3-4-k80-1:~$ cat ~/j.sh
cd /mnt/production/envs/
source myra-env/bin/activate
jupyter notebook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment