-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart_server.sh
More file actions
executable file
·41 lines (36 loc) · 1.21 KB
/
start_server.sh
File metadata and controls
executable file
·41 lines (36 loc) · 1.21 KB
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
#!/bin/bash
# Start BeamCommander application only
echo "Starting BeamCommander server..."
# Parse command line arguments
for arg in "$@"; do
case $arg in
-h|--help)
echo "Usage: $0 [--help]"
echo ""
echo "Start BeamCommander laser control application"
echo ""
echo "Options:"
echo " --help Show this help message"
echo ""
echo "Other scripts:"
echo " ./start_open-stage-control.sh Start web interface separately"
exit 0
;;
*)
echo "Unknown argument: $arg"
echo "Use --help for usage information"
exit 1
;;
esac
done
# Navigate to BeamCommander directory
cd "$(dirname "$0")/openframeworks-src-master/apps/myApps/BeamCommander"
# Check if application is built
if [ ! -f "bin/BeamCommander.app/Contents/MacOS/BeamCommander" ]; then
echo "BeamCommander not found! Run ./build.sh first to build the application."
exit 1
fi
# Run BeamCommander
echo "Starting BeamCommander application..."
echo "Note: Start web interface separately with: ./start_open-stage-control.sh"
./bin/BeamCommander.app/Contents/MacOS/BeamCommander