brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Brian Silverman | 80353cb | 2013-03-19 18:27:53 -0700 | [diff] [blame^] | 3 | echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern |
| 4 | |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 5 | #echo $$ > /var/run/`basename $0`.pid IT FORKS AFTER THIS!!!! |
| 6 | insmod /home/driver/robot_code/bin/aos_module.ko |
| 7 | #chrt -p 45 `pidof sshd` |
| 8 | chrt -o 0 bash -c "export PATH=$PATH:/home/driver/robot_code/bin; starter_loop.sh $*" & |
| 9 | #chrt -o 0 bash -c "while true; do cd /home/driver/mjpg-streamer2; ./server.sh; sleep 5; done" & |
| 10 | |
| 11 | # Log everything from the serial port... |
| 12 | #SERIAL_LOG_FILE=$(date "/home/driver/tmp/robot_logs/serial_log.%F_%H-%M-%S") |
| 13 | #chrt -o 0 bash -c "( stty -echo -echoe -echok 9600; cat > ${SERIAL_LOG_FILE} ) < /dev/ttyUSB0" & |
| 14 | |
| 15 | # Wireshark _everything_ we can see... |
| 16 | #DUMPCAP_LOG_FILE=$(date "/home/driver/tmp/robot_logs/dumpcap.%F_%H-%M-%S") |
| 17 | #DUMPCAP_STDOUT_FILE=$(date "/home/driver/tmp/robot_logs/stdout_dumpcap.%F_%H-%M-%S") |
| 18 | #chrt -o 0 bash -c "dumpcap -i eth0 -w ${DUMPCAP_LOG_FILE} -f 'not port 8080 and not net 10.9.71.13' > ${DUMPCAP_STDOUT_FILE}" & |
| 19 | |