# Cron Jobs

Applications can define cron jobs to run recurring tasks at scheduled times

Cron jobs are an important piece of building applications that need work done on a recurring schedule.

Hatchbox configures cron jobs to use

## Debugging cron jobs

Cron is a long-running process built-in to the OS. You can view the cron logs to see what times it executes the cron job commands.

To view the cron logs:

```
journalctl -u cron
```

To follow live cron logs:

```
journalctl -u cron -f
```

To filter to the deploy user&#39;s cron jobs:

```
journalctl -u cron -g &quot;\(deploy\) CMD&quot;
```

Cron doesn&#39;t capture the output of commands it executes, so you may want to write the job&#39;s output to a file. You can update your cron job to append logs to a file and use `2&gt;&amp;1` to capture both stdout and stderr:

```
my-command &gt;&gt; /home/deploy/cron.log 2&gt;&amp;1
```
