Skip to content

Commit

Permalink
Enable tct logging with -log option
Browse files Browse the repository at this point in the history
  • Loading branch information
jhh committed Jan 2, 2019
1 parent fd123d5 commit 25592f1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion script/tct.sh → script/tct
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ echo stopping robot...
/usr/local/frc/bin/frcKillRobot.sh
echo tct starting, please wait...
echo
/usr/local/frc/JRE/bin/java -Djava.library.path=/usr/local/frc/lib/ -jar tct.jar 2> /dev/null

log=/dev/null
while [ $# -gt 0 ]; do
case "$1" in
-log) log=/home/admin/tct.log;;
esac
shift
done

/usr/local/frc/JRE/bin/java -Djava.library.path=/usr/local/frc/lib/ -jar /usr/local/lib/tct.jar 2> $log
echo
echo reboot roboRIO to restart robot code.

0 comments on commit 25592f1

Please sign in to comment.