تحميل

How to run scripts via cron jobs

Updated at
22/08/2023
Views
4018

You can run scripts via cron jobs in cPanel by following these steps:

  1. Log in to your cPanel account.

  2. Navigate to the "Cron Jobs" option in the "Advanced" section.

  3. In the "Add New Cron Job" section, select the time interval at which you want the script to run. You can choose from predefined intervals, such as "Every minute" or "Every day", or specify a custom interval using the fields provided.

  4. In the "Command" field, enter the command to run your script. For example, if your script is located in a file called "myscript.php" in your home directory, the command would be:

/usr/local/bin/php /home/username/myscript.php

Replace "username" with your cPanel username.

  1. Click on the "Add New Cron Job" button to save the cron job.

  2. You can view and manage your existing cron jobs in the "Current Cron Jobs" section.

YottaSrc footer

لماذا تختارنا؟

أفضل الأسعار, تخزين SSD سريع و دعم فني
24/7 حقيقي

control panel icon
cPanel

إدارة موقعك من خلال CPanel بأحدث إصدار

security icon
سريع وموثوق وآمن

ضمان وقت تشغيل بنسبة 99.8٪.
لذا ركز على عملك!

support icon
دعم 24/7/365

ليلاً أو نهارًا ، مطر أو شمس ،
فريقنا هنا من أجلك!

cloud backup icon
نسخ احتياطي يومي

نسخ احتياطي يومي وأسبوعي.
ملفاتك آمنة!