# urbestack-cron-job-add

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-cron-job-add --user NAME --schedule 'MIN HOUR DAY MONTH WEEKDAY' --command-stdin
```

## Description

Adds a job to a customer's crontab. Pass a cron keyword such as @daily to --schedule, or give five fields in order: minute, hour, day of the month, month, and day of the week. The fields support *, numbers, ranges, lists, and steps. A month or weekday can also be specified by its three-letter name on its own.

Use --command-stdin and supply the command as one line on standard input. Cron runs it as the customer with /bin/sh. Cron treats % as a line break. Write \% for a literal percent sign.

UrbeStack refuses to add the job if the crontab is set aside, the customer's package disallows cron, or the package's job limit has been reached. If the crontab has no MAILTO line, UrbeStack adds MAILTO="" at the top to suppress email from cron.

## Same in the API

- [POST /users/{name}/cron/jobs](https://urbestack.com/docs/api/post-users-name-cron-jobs.md): Add a job to a customer's crontab

## Command family: cron

- [urbestack-cron-job-del](https://urbestack.com/docs/commands/urbestack-cron-job-del.md): Removes a job from a customer's crontab immediately.
- [urbestack-cron-job-set](https://urbestack.com/docs/commands/urbestack-cron-job-set.md): Updates a job in a customer's crontab.
- [urbestack-cron-list](https://urbestack.com/docs/commands/urbestack-cron-list.md): Lists a customer's cron jobs from crontab -u NAME -l.
- [urbestack-cron-set](https://urbestack.com/docs/commands/urbestack-cron-set.md): Sets where cron sends a customer's job output.
