Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7073599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:56:55+00:00 2026-05-28T05:56:55+00:00

How to schedule a task to linux server system using php script? For example,

  • 0

How to schedule a task to linux server system using php script? For example, I need php script to schdule a task for system to run bash script which will backup my files to zip archive? Is there a way to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:56:56+00:00Added an answer on May 28, 2026 at 5:56 am

    If you have access to ssh on that machine you can simply schedule your task using linux’s crontab. While logged in, type crontab -e which will bring up an editor with the current cron jobs for that user. The syntax is simple, it is composed from 6 parameters, an example line would be :

    * * * * * /usr/bin/php -f /path/to/your/php/file
    

    the parameters stand for :

    minute hour day_of_month month day_of_week command_to_run
    

    and the command above will run at_every_minute of_every_hour any_day_of_the_month of_every_month any_day_of_the_week

    If you would like to schedule a task to run at 5:05 am on all mondays of every month it will be something like :

    5 5 * * 1 /usr/bin/php -f /path/to/your/php/file
    

    A really nice tool is http://corntab.com which will help you schedule your command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run a macro in an Excel spreadsheet through a schedule task.
I have installed localhost/server in my machine and I need to run a php
I've started using the task queue to schedule a time-intensive task to run in
Users of my application need to be able to schedule certain task to run
I need to schedule a task to run in at fixed interval of time.
I need to schedule a task to run on the last night of each
How do you schedule a task in Windows XP to run when you shut
I have code where I schedule a task using java.util.Timer . I was looking
I want to write a script that will stop a scheduled task on a
I want to schedule a task on Linux by icrontab, and the task is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.