Browse Source

Merge pull request #4346 from Anuril/patch-1

Small update to the documentation for cronjobs.
Jaap Marcus 1 year ago
parent
commit
131dbc1262
1 changed files with 8 additions and 0 deletions
  1. 8 0
      docs/docs/user-guide/cron-jobs.md

+ 8 - 0
docs/docs/user-guide/cron-jobs.md

@@ -29,3 +29,11 @@ To manage your cron jobs, navigate to the **Cron <i class="fas fa-fw fa-clock"><
 
 1. Hover over the job you want to delete.
 2. Click the <i class="fas fa-fw fa-trash"><span class="visually-hidden">delete</span></i> icon on the right of the job’s command.
+
+## Example commands
+
+If you want to run a php script for a user, you can enter the command like this, using the full binary path of the application to run:
+
+```bash
+/usr/bin/php8.2 -f /home/user/web/domain.example.com/public_html/cron.php
+```