|
|
|
This page contains information on how to perform continuous coredevice logging over UART using the DAX comtools package.
|
|
|
|
|
|
|
|
## Continuous logging
|
|
|
|
|
|
|
|
Some logging scripts, such as the UART core logger, need to be initiated at startup to run in the background. This can be done using [crontab](https://askubuntu.com/questions/814/how-to-run-scripts-on-start-up#816) and [tmux](https://serverfault.com/questions/907878/how-to-start-a-detached-tmux-session-via-ssh).
|
|
|
|
|
|
|
|
`crontab` startup script:
|
|
|
|
|
|
|
|
```
|
|
|
|
SHELL=/bin/bash
|
|
|
|
USER=artiq
|
|
|
|
@reboot ~/log_core.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
`~/log_core.sh` script:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
#!/bin/bash -e
|
|
|
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
tmux new -d -s log_core nix-shell ~/shell.nix --run "dct_core_logger ..."
|
|
|
|
``` |
|
|
|
\ No newline at end of file |