Questions tagged as 'cron'

0
answers

Avoiding DDOS Alerts Due to Multiple Requests

I'm developing an application in Laravel , where I have to use Web Scraping techniques to extract data from some sites, and make it available to the user. I have already programmed the Spider-Scripts to mine this data, and they are working...
asked by 01.06.2018 / 18:04
0
answers

How to create cron jobs via php

I'm developing a system where it sends out scheduled emails using PHP. Then you will have a management interface that the user can choose in how many days he wants to send the emails. Now my question is, how can I create a cron through how ma...
asked by 16.03.2018 / 18:12
1
answer

Configure Cronjob to run every 5 minutes when it is between 5 to 20 hours

I need to make a setup so my cronjob works every 5 minutes. However, if the time of day is before 5 and greater than 20 I do not want it to run. That is, I want to make a cron that runs every 5 minutes, but only in...
asked by 20.04.2016 / 20:04
1
answer

Can I create a cron to delete files with retroactive dates?

See my need, I have a cron that runs every night and creates a file_ddmmaaaa.backup on the Linux Kubuntu server, it happens that the hard disk is filling since this backup file has in average 500MB, how to create a cron that deletes files a date...
asked by 16.12.2017 / 16:13
0
answers

Server with Timer in PHP

I would like to use PHP to run a monitoring server, which periodically runs (eg, hourly) a check, but without relying on Cron or Task Scheduler, unless it is to start on that server PHP, so as well as not getting stuck the platform, I can contro...
asked by 16.10.2017 / 15:53
1
answer

How to execute a function in cron job?

I would like to know how and how best to perform a cron job, if I write it as a direct function in cron? I would like to do it every day at 6am. public function atualizarpontuacao(){ $palpites = Listadepalpites::all(); $data = da...
asked by 07.10.2017 / 01:00
1
answer

Crontab does not execute a command in PHP

On a CentOS 7 machine I have the following line in crontab 0 21 * * * php -q /data/wwwroot/central/crons/cron.php >/dev/null 2>&1 But at the specified time it does not perform the task. And in the log the result is eh Sep 27 21:...
asked by 28.09.2017 / 02:10
1
answer

How do I know if there is a CRON doing work on the PHP 5.3 garbage collector (CentOS)?

I have this error:    ps_files_cleanup_dir: opendir (/ var / lib / php5) failed: Permission denied. The normal fix is to set session.gc_probability = 0 But in CentOS, the correct thing is that session.gc_probability is 1...
asked by 23.11.2016 / 03:34
0
answers

How to convert a date into a cron expression?

I'm developing an application in PHP and Javascript to schedule some tasks. The user will be able to configure the date of execution of the task (with datapicker for example) from a graphical interface. I would like to retrieve this data...
asked by 28.11.2016 / 15:02
2
answers

How to use a Rails cron job to run a program in Java?

Is it possible to use a cron job in Rails to execute a command that executes a class in Java? If so how?     
asked by 18.06.2014 / 19:11