Skip to content

Commit 8cbf746

Browse files
committed
add full crontab example
1 parent 8484e8a commit 8cbf746

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ To run it once a day at a specific time try something like:
5151
04 16 * * * cd /home/johns/dev/synthesize-events && /usr/bin/npm run runProd >> /home/johns/cronoutput-synthesize.txt 2>&1
5252
```
5353

54+
In conjuction with transfer-events and using UTC timezone:
55+
```
56+
TZ=UTC
57+
03 0 * * * cd /home/johns/dev/transfer-events && /usr/bin/npm run runProd >> /home/johns/cronoutput.txt 2>&1
58+
06 0 * * * cd /home/johns/dev/synthesize-events && /usr/bin/npm run runProd >> /home/johns/cronoutput-synthesize.txt 2>&1
59+
```
60+
5461
`which npm` to determine npm path (path isn't always setup with crontab)
5562

5663
4:00pm Pacific time

0 commit comments

Comments
 (0)