Skip to main content

Scheduling the Execution of a Background Task (start)

This command allows you to specify the hour, minute, and optionally the day/month when the task should run.
An option also lets you run the scheduling in the background.


✅ Usage:

watchman-agent cron --hour <hour> --minute <minute> [--day <day>] [--month <month>] [-d|--detach]

⚙️ Options :

--hour    : Hour (0–23) to start  
--minute : Minute (0–59) to start
--day : Day of the month (optional, default: "*")
--month : Month (optional, default: "*")
-d, --detach : Run the task in the background

Notes:

Logs are generated and saved in ~/watchman-agent-v2-cron-log.log to track execution.