File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bittide-instances/data/picocom Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ set -e
1414PICOCOM_STDOUT_LOG=" ${PICOCOM_STDOUT_LOG:-/ dev/ null} "
1515stdout_dir=$( dirname " ${PICOCOM_STDOUT_LOG} " )
1616mkdir -p " ${stdout_dir} "
17+ touch " $PICOCOM_STDOUT_LOG "
1718
1819# Default stderr to /dev/null
1920PICOCOM_STDERR_LOG=" ${PICOCOM_STDERR_LOG:-/ dev/ null} "
2021stderr_dir=$( dirname " ${PICOCOM_STDERR_LOG} " )
2122mkdir -p " ${stderr_dir} "
22- touch " $PICOCOM_STDOUT_LOG "
2323touch " $PICOCOM_STDERR_LOG "
2424
2525PICOCOM_BAUD=" ${PICOCOM_BAUD:- 921600} "
@@ -29,7 +29,7 @@ PICOCOM_BAUD="${PICOCOM_BAUD:-921600}"
2929# Flags: --pid: causes tail to close when picocom closes
3030# -n 0: Only read out the latest lines, not the last 10 lines
3131# -F: Could also be -f, but -F is apparently slightly safer due to inodes
32- tail --pid=$$ -n 0 -F " ${PICOCOM_STDOUT_LOG} " &
32+ tail --pid=$$ -n 0 -F " ${PICOCOM_STDOUT_LOG} " | tee " myTest.log " &
3333tail --pid=$$ -n 0 -F " ${PICOCOM_STDERR_LOG} " >&2 &
3434
3535exec picocom --baud " ${PICOCOM_BAUD} " --imap lfcrlf --omap lfcrlf $@ \
You can’t perform that action at this time.
0 commit comments