Skip to content

Commit 751b419

Browse files
committed
Updated README_cron.md
1 parent 7a9e873 commit 751b419

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

cron/README_cron.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@ Login as `githubrunner`
1313
crontab -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
2240
tail -f ~githubrunner/testbed_micropython/cron/cron_log.txt
2341

2442
journalctl -t CRON | tail
25-
```
43+
```

0 commit comments

Comments
 (0)