Help Tips For Joforce QuickBooks
How to configure CRON?
String | Definition |
---|---|
@reboot | Run once, at startup |
yearly or annually | Run once a year, "0 0 1 1 *" |
monthly | Run once a month, "0 0 1 * *" |
weekly | Run once a week, "0 0 * * 0" |
daily or midnight | Run once a day, "0 0 * * *" |
hourly | Run once an hour, "0 * * * *" |
Sample:
Minute(0-59) | Hour(0-23) | Day of Month(1-31) | Month(1-12 or Jan-Dec) | Day of Week(0-6 or Sun-Sat) | Result |
---|---|---|---|---|---|
0 | 5 | 10 | * | * | Runs on 10th of every month @ 5AM |
Crontab Entry:
Windows :
All Programs → Accessories → System Tools → Task Scheduler
Mac/Unix/Linux :
-
Open the terminal.
-
Execute the command, crontab -e
- Add the Cron entry.
Cron entry steps in cPanel :
-
Log in to your account and click Web Hosting.
-
Next to the hosting account, click Manage.
-
In Advanced section, click on Cron Jobs.
-
Call the script in the command line field ‘/usr/local/bin/php -q /home/[username]/[path to the file] or copy and paste the cron entry in the field next to the command field.
-
Select the frequency of times you want the Cron to execute the command.
- Click on Add New Cron Job to save your changes.
Cron entry steps in Plesk :
-
In Parallels Plesk Panel, Go to Domain or Websites & Domains section.
-
Select Domain → Scheduled Tasks (under Additional Tools) → System User → Schedule New Task.
-
Specify the frequency of times you want the Cron to execute the command.
- Specify the Cron entry in the Command input box.
Cron entry steps in DirectAdmin :
-
In DirectAdmin Panel, Go to CronJobs.
-
Specify the frequency of times you want the Cron to execute the command.
-
Specify the Cron entry in the Command input box.
- Click on Add to save the changes.
Cron entry steps for InterWorx:
-
In InterWorx Panel, Click on Server → CRON → Choose User → Simple Interface.
-
Specify the frequency of times you want the Cron to execute the command.
-
Specify the Cron entry in the Command input box.
- Click on ‘Add’ to save the changes.
Cron entry steps for iMSCP :
-
In iMSCP, Click on Web Tools → Cron Jobs.
-
Specify the frequency of times you want the Cron to execute the command.
-
Specify the Cron entry in the Command input box.
- Click on Add to save the changes.
Cron entry for Vesta :
-
In Vesta, Click on CRON.
-
Specify the frequency of times you want the Cron to execute the command.
-
Specify the Cron entry in the Command input box.
- Click on Add to save the changes.
Cron entry in ZPanel :
touch /etc/cron.d/zdaemon
echo touch /etc/cron.d/zdaemon echo “/5 * root /usr/bin/php -q /etc/zpanel/panel/bin/daemon.php >> /dev/null 2>&1” >> /etc/cron.d/zdaemon chmod 644 /etc/cron.d/zdaemon