This repository was archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgood_computer.sh
executable file
·46 lines (35 loc) · 2.67 KB
/
good_computer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /usr/bin/env bash
# get rid of any tmux sessions
tmux kill-server
clear
echo " ██████╗██╗████████╗██╗ ██╗███████╗ ██████╗██╗███████╗███╗ ██╗ ██████╗███████╗"
echo "██╔════╝██║╚══██╔══╝╚██╗ ██╔╝██╔════╝██╔════╝██║██╔════╝████╗ ██║██╔════╝██╔════╝"
echo "██║ ██║ ██║ ╚████╔╝ ███████╗██║ ██║█████╗ ██╔██╗ ██║██║ █████╗ "
echo "██║ ██║ ██║ ╚██╔╝ ╚════██║██║ ██║██╔══╝ ██║╚██╗██║██║ ██╔══╝ "
echo "╚██████╗██║ ██║ ██║ ███████║╚██████╗██║███████╗██║ ╚████║╚██████╗███████╗"
echo " ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝╚══════╝╚═╝ ╚═══╝ ╚═════╝╚══════╝"
sleep 10
echo "--------------------------------------------------------------------------"
echo -ne "auto reboot script running "\\r
sleep 10
echo -ne "waiting for 3min to warm up computer "\\r
sleep 10
echo -ne "after this script, you will have two tmux sessions running "\\r
sleep 10
echo -ne "access the processes by 'tmux a -t simulation' and 'tmux a -t scanner'"\\r
sleep 10
echo -ne "to detach the session, you need to hit Ctrl-b, d "\\r
sleep 10
echo -ne "two minutes left for simulation to start...."\\r
sleep 120
echo -ne ""
echo -ne "starting simulation "\\r
tmux new-session -d -s simulation 'processing-java --sketch=/Users/cityscience/Documents/GitHub/CS_Cooper-Hewitt/ABMobility --run'
echo -ne "simulation started "\\r
sleep 60
echo -ne "starting scanner "\\r
tmux new-session -d -s scanner 'python3 /Users/cityscience/Documents/GitHub/CityScope_Scanner_Python/scanner/scanner.py'
echo -ne "scanner started "\\r
clear
echo "good computer setup done bye have a nice day"
tmux attach -t scanner