source: sans/utils/bt5/scripts/startprogs @ 830

Last change on this file since 830 was 830, checked in by ajj, 11 years ago

Various scripts for BT5:

  • script to set up user folder etc and start programs
  • script to run bt5plot (should repackage bt5plot as a real python package)
  • latest iteration of our prepare script


  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2
3#Copy in BUF files
4#cp $HOME/RunTemplates/* .
5loopvar=0
6while [ "$loopvar" != 1 ]; do
7        read -p "Do you want to copy default buffers (overwriting any that exist)? (y/n):"
8        if [ $REPLY == "y" ]; then
9                echo "Copying default buffers - Overwriting exisitng ones..."
10                cp $HOME/RunTemplates/* .
11                loopvar=1
12        elif [ $REPLY == "Y" ]; then
13                echo "Copying default buffers - Overwriting existing ones..."
14                cp $HOME/RunTemplates/* .
15                loopvar=1
16        elif [ $REPLY == "n" ]; then
17                echo "NOT Copying default buffers - using existing ones..."
18                loopvar=1
19        elif [ $REPLY == "N" ]; then
20                echo "NOT Copying default buffers - using existing ones..."
21                loopvar=1
22        else
23                echo "Invalid response. Try again"
24                loopvar=0
25        fi
26done
27
28#Start ICP and ICP Log
29echo 'Starting ICP...'
30/usr/bin/gnome-terminal --geometry=77x20+3-25 --hide-menubar --window-with-profile=ICP -e icp &
31/usr/bin/gnome-terminal --geometry=77x20+642-25 --hide-menubar --window-with-profile=ICPLog &
32
33#Start prepare
34echo 'Starting prepare...'
35/usr/bin/nohup $HOME/bin/prepare 2>&1 > /dev/null &
36#/usr/bin/nohup $HOME/bin/bt5plot -geometry 910x643+1292+0 2>&1 > /dev/null &
37#/usr/bin/nohup /usr/local/icp/bin/xpeek -geometry 400x329+1296-0 2>&1 > /dev/null &
38
39#Start editor
40echo 'Starting editor...'
41#gedit doesn't take geometry flag. How annoying.
42/usr/bin/gedit &
43
44#Start xpeek
45echo 'Starting xpeek...'
46#Temporary xpeek from charlotte fix
47/usr/bin/ssh -fY xpeek@charlotte xpeek bt5
48
49#Start bt5plot
50echo 'Starting bt5plot...'
51$HOME/bin/bt5plot
Note: See TracBrowser for help on using the repository browser.