Trending Cron Discussions

Follow

Ask the Community


Ask any professional question and get answers from other specialists.

Stream language
Gautam Sahib PMP's image
Question added by Gautam Sahib PMP Senior Administrator - IT Applications, ERP FAWAZ TRADING & ENGINEERING SERVICES CO.W.L.L
7 years ago

What should be ideal output of a PHP script which is called by Cron on hourly basis?‎

What should be ideal output of a PHP script which is called by Cron on hourly basis?‎

Answers:
2
Followers:
Views:
244
Vote Count:
0
Answer should contain a minimum of 25 characters.
Muhammad Anzar's image
Question added by Muhammad Anzar DevOps/DevSecOps Architect Confidential
9 years ago
Answers:
3
Followers:
Views:
179
Vote Count:
0
Answer should contain a minimum of 25 characters.
Rajesh Pant's image  
Answer added by  Rajesh Pant, System Engineer, Tech Mahindra Limited
9 years ago

Cron is a system daemon used to execute desired tasks (in the background) at designated times.A crontab is a simple text file with a list of commands meant to be run at s ... See More

ghilman ahmed's image  
Answer added by  ghilman ahmed, System Administrator, Streaming Networks Pvt Ltd
9 years ago

cron job scheduler is used to schedule tasks regularly. crontab -e is used to edit and add crontab jobs. crontab -l to list the jobs written as a specific user. crontab - ... See More

Ahmed Sabra's image  
Answer added by  Ahmed Sabra, Integration Support Engineer- Fintech, Saudi Financial Technology Company
7 years ago

You can log its output to a file for later debug and monitor. You can do that from crontab:   * * * php /path/to/task1.php        >> /path/to/task1.log  

Atif Majid's image  
Answer added by  Atif Majid, Senior PHP Programer/Team Lead, RedApple Apartments AB
7 years ago

As the cron runs without any user interaction, it doesn't really matter what output script gives. But, if you want to monitory progress of your cron scripts, add the ... See More

Roshan Firozkhan's image  
Answer added by  Roshan Firozkhan, IT System Administrator, Emirates Driving Institute
8 years ago

The five stars at the beginning specifies the time ***** /COMMANDTORUN   1st star Min(0-) 2nd star Hour(0-) 3rd Star DAY of the month(1-) 4th Star Month(1-or Jan-Dec) 5th ... See More