File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,31 @@ Login as `githubrunner`
1313crontab -e
1414
1515# m h dom mon dow command
16- 0 20 * * * cd ~ / testbed_micropython && ./ cron/run_test_report_all.sh >> ~ /testbed_micropython/cron/cron_log.txt 2>&1
16+ 0 20 * * * cd /home/githubrunner/ testbed_micropython && /home/githubrunner/testbed_micropython/ cron/run_test_report_all.sh >> /home/githubrunner /testbed_micropython/cron/cron_log.txt 2>&1
1717```
1818
1919## Debugging
2020
21+ Crontab file
22+
23+ ``` bash
24+ cat /var/spool/cron/crontabs/githubrunner
25+
26+ crontag -l # list user's crontab
27+ ```
28+
29+ Test command
30+
31+
32+ ``` bash
33+ env -i /bin/bash --noprofile --norc
34+ < -- here goes to cron-command
35+ ```
36+
37+ Observer running jobs
38+
2139``` bash
2240tail -f ~ githubrunner/testbed_micropython/cron/cron_log.txt
2341
2442journalctl -t CRON | tail
25- ```
43+ ```
You can’t perform that action at this time.
0 commit comments