Skip to content

Commit 25592f1

Browse files
committed
Enable tct logging with -log option
1 parent fd123d5 commit 25592f1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

script/tct.sh renamed to script/tct

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ echo stopping robot...
1414
/usr/local/frc/bin/frcKillRobot.sh
1515
echo tct starting, please wait...
1616
echo
17-
/usr/local/frc/JRE/bin/java -Djava.library.path=/usr/local/frc/lib/ -jar tct.jar 2> /dev/null
17+
18+
log=/dev/null
19+
while [ $# -gt 0 ]; do
20+
case "$1" in
21+
-log) log=/home/admin/tct.log;;
22+
esac
23+
shift
24+
done
25+
26+
/usr/local/frc/JRE/bin/java -Djava.library.path=/usr/local/frc/lib/ -jar /usr/local/lib/tct.jar 2> $log
1827
echo
1928
echo reboot roboRIO to restart robot code.

0 commit comments

Comments
 (0)