Most voted "cron" questions
Cron software utility is a time-based task scheduler on Unix-like operating systems.
Learn more…77 questions
Sort by count of
-
22
votes1
answer29792
viewsSet up Cronjob to run every 5 minutes, when it’s between 5 to 20 hours
I need to make a configuration so that mine cronjob function every 5 minutes. However, if the time of day is before 5and greater than 20 I don’t want you to spin. I mean, I want a make one cron…
-
14
votes1
answer268
viewsWhat happens to a 2:30 Cronjob if the server goes down at 2:28 and only comes back 5 minutes later?
I don’t know if the question is confusing, but is that I have used a lot of Cronjob in my systems currently and do not want to have problems. So I’m going to illustrate my concern with a…
-
9
votes3
answers8386
viewsHow to create a task scheduler without using cron and without using wordpress
I need to create an automatic method to schedule my email marketing system, to trigger emails automatically, without using the browser. Today my system is using cron, and every time I enable it on a…
-
7
votes1
answer1589
viewsAutomate tasks with Laravel 5
Good morning Personal. I need to create some tasks on my system that are executed automatically (such as a Cron Job). Example: Every day the system sends an email to system customers with the value…
-
7
votes3
answers339
viewsBash - Mysql backups
I rode the script below, to perform backups of three Mysql bases. I would like to know if it is correct. #VARIAVEIS DATE=`date +%Y%m%d-%H%M` HOSTNAME1="xxxxx" HOSTNAME2="yyyyy" HOSTNAME3="zzzzz"…
-
6
votes3
answers638
viewsIs it possible to make a POST from a file automatically?
I’m using the Cron to run a PHP script. I want to do a file upload load test for my server and Cron is in charge of this (the server then sends to Amazon). I was thinking of using the…
-
6
votes2
answers1187
viewsHow to configure crontab to run URL, Linux Ubuntu command
I created 4 methods and I want to run them by accessing the link. I have already tested the methods and all are working normally, but I have tried several settings by crontab -e. I’ve tried to: 0 *…
-
4
votes1
answer155
viewsSchedule linux task (Cron)
How to open a file and shut down your computer with crontab? Follow my attempt: 30 07 * * * killall qbittorrent (funcionando) 50 07 * * * shutdown -r 1 "Desligando desktop" (não funciona) 30 12 * *…
-
4
votes2
answers112
viewsWhat is the best way to monitor a value in a database?
I am working on an item management system, in which I need to constantly monitor the amount of items available. Upon reaching a predefined minimum threshold, the system shall issue the item in an…
-
4
votes1
answer13616
viewsHow to create a cron in Laravel?
I have to create a Cron on Laravel to send emails every 24 hours. I’m supposed to upload data from the bank. So after a query in the database cron should send the email with the query data.
-
4
votes2
answers10833
viewsWhat are CRON JOBS and how to use them with PHP
Recently asked this question, but I found it kind of vulnerable to use the codes that were answered there, summarizing the best answer: Creates a Cookie with a Time and hides the button, after this…
-
4
votes3
answers228
viewsDelete automated files
Good guys, I have a system, where practically daily uploads are sent via pdf files. After a while it has a lot of accumulated file. For example: Upo 100 PDF hj files, tomorrow I put 20. So, from the…
-
3
votes1
answer1112
viewsRun a script automatically - without using CRON
I usually schedule a script that should be run from time to time (such as an order status update, for example) using Linux CRON. (I have no idea how to do this on Windows hosts) However, I noticed…
-
3
votes1
answer1583
viewsHow to create a Cron job?
I have a real estate website that every day we do an XML import of the properties added the day before. This import is done by a component where I choose the file and give import and it runs the…
-
3
votes0
answers125
viewsError giving bin/folder index:reindex
My Magento control panel keeps showing this message One or more indexers are invalid. Make sure your Magento cron job is running. I saw I had to give one php bin/magento indexer:reindexbut whenever…
-
3
votes1
answer810
viewsHow to run linux desktop application remotely via command?
I have a server on a client where I use a remote application, sometimes some user goes there and closes the application (I don’t know if unintentionally or the owner, for fear), so I can’t connect.…
-
2
votes2
answers950
viewsRun Cronjob Codeigniter
How to execute a class method in Codeigniter via Cronjob? Ex: main.php accessed in http://www.meusite.com.br/principal/listaCron <?php if ( ! defined('BASEPATH')) exit('No direct script access…
-
2
votes1
answer142
viewsDoesn’t Crontab kill the lawsuits after they’re done?
I’m using the Crontab to run a PHP script every 10 minutes the problem is that the processes are running on the server, that is to say every 10 minutes I have another process running. crontab -e */5…
-
2
votes2
answers1029
viewsSchedule page loading through CRON
I have a page in PHP that checks the news feed of some blogs and records the records in the database. For this to happen, it is only necessary to load the address ex: "www.site.com/pagina.php", I…
-
2
votes1
answer334
viewscheck if the file is in use with php
Guys I have a file called photo.zip, where people can download it on my site. I want to create a php file that crontab will run every 10 minutes, and check if the file is being downloaded by…
-
2
votes1
answer832
viewsHow to run the same php script via cron without overloading?
What is the best way to run the same php script several times by making random queries for a given column with a limit of 1000 per query of the same mysql table via cron (Cpanel) without generating…
-
2
votes1
answer166
viewsSchedule job to run on the Wildfly server
I need to create a task runner where it will call a method from time to time. I saw an example and it was like this my implementation: public class Agendador { // Scheduler private final…
-
2
votes0
answers45
viewsUsing the sysstat utility to save server usage information in XML format
Sysstat allows you to collect all the information I need from the server: CPU usage, memories, buffers... sadf - with the -x option prints in XML format. I would like all information (CPU usage,…
-
2
votes0
answers196
viewsRecognize Laravel Email Sending Error
Good morning. I’m making a cron with Laravel 5.2 for sending emails to my company, I am using sending Mail of Laravel and would like to know if there is a way for Laravel to recognize that the email…
-
2
votes2
answers1544
viewsScript . sh to run a python script from within Cron
Good morning. I’m having a problem with a python program I did. What happens is that when I run my program from the command line with this command it works normal : python3…
-
1
votes1
answer613
viewsHow to run cron job on the server
How do I run a file. php on the entire server, I want to run a php that shows the Uptime of the server, but I don’t know where to put it to see how long the server is active. Use of Dedicated…
-
1
votes2
answers313
viewsHow to set up cronjobs in cakephp?
How do I use cronjobs in Cakephp, need to call a controller action on the linux server, is the script path? I’ve tried it here and it didn’t work!
-
1
votes1
answer83
viewsHost server integration with local server
I will integrate the system hosted on the kinghost server with a local server. The idea is that when some content is updated on the hosting server update the content of the local server system, and…
-
1
votes1
answer88
viewsCronjob does not recognize the Codeiginiter controller
I’m trying to make a cronjob run in the IC, but I’m not getting, this error appears: Fatal error: Class 'Ci_controller' not found in /Meucaminho/application/controllers/cron.php online 4 PHP…
-
1
votes1
answer1809
viewsHow do I make crontab run a shellscript?
Guys I have a . sh and I’m having difficulty making it run on crontab every minute Example I have my file . sh /var/www/exec/checarservidor.sh it is with due permissions. add it to crontab * * * * *…
-
1
votes2
answers360
viewsReplace CRON
I made a script PHP which has to be executed at all times, usually from 1 to 1 seconds or at most 2 to 2 seconds. The problem is that I have configured several command lines in CRON to run every 1…
-
1
votes0
answers122
viewscronjob Curl does not work on aws
Hello, I’m trying to generate a cronjob on Amazon Web Services (aws), I tried several ways but it doesn’t work. Here’s the code: */2 * * * * /usr/bin/Curl http://11.11.11.11/caminho/checar using…
-
1
votes1
answer116
viewsAlternativa Cron Job
I need to run this cron job ***** wget --spider -O - http://dominio.com/cron >/dev/null 2>&1 But the hosting doesn’t let me use ">" , would have some alternative to this task? look what…
-
1
votes0
answers134
viewsE-mail with Phpmailer and Cron (Ubuntu)
To schedule email submissions, do you need to do something other than put the file inside the /etc/cron.Aily folder (for daily submissions)? This code works when I run directly on the server, you…
-
1
votes1
answer432
viewsHow to remove time out? PHP
I’m using a cron to run a script that reads a txt file of 18 thousand lines and goes inserting in the bank, but is running at most a thousand lines, from nothing to, did not fall into any of the…
-
1
votes1
answer789
viewsCan you create a cron to delete files with retroactive dates?
See my need, I have a cron that runs every morning and creates a file.ddmmaaaa.backup on the Linux Kubuntu server, it happens that the hard drive fills up quickly since this backup file has 500MB on…
-
1
votes1
answer232
viewsConfigure log in crontab
Good use of crontab as follows. 0 * * * * wget -q -O /var/www/CronTab.txt https://www.meuseite.com.br/tarefa.php So it always creates a txt file 'Crontab.txt' with the result, and if you have any…
-
1
votes1
answer417
viewsHow to set up sending email in Laravel within cron?
After the creation of cron (code below) is made a scan in the database behind changed data. I have to send an email with this data. How can I do that ??? Code of the cron: <?php namespace…
-
1
votes1
answer1490
viewsHow to test the cron in the Laravel?
I created a cron for sending email every period of time. But how to test the operation ? Code <?php namespace App\Console\Commands; namespace App\Console\Commands\EnvioEmailBlCron; use…
-
1
votes2
answers185
viewsLaravel cron error does not execute
I have a cron that should be running every day in an hour. $Schedule->command('inspire')->dailyAt('15:00'); but he is not being executed Code <?php namespace App\Units; use…
-
1
votes0
answers36
viewsHow to do a Cron task with Laravel?
I have a Function in php/Laravel, and would like to fire this Function every 2 hours and 35 minutes. My question is: Using Laravel, as I create correctly, a cron to trigger this function in this…
-
1
votes1
answer445
viewsCron command without using password to access MYSQL database
Good personal day, lately I’ve been receiving warnings related to a cron I created on 1 site to update certain data from a mysql database table. The error is as follows: Warning: Using a password on…
-
1
votes1
answer599
viewsSchedule and cancel task in Node.JS (Node-cron, cron or Schedule)
I created a simple server with two routes, one to start a periodic service /job/start and another to cancel it /job/stop. Here’s the code: // framework const express = require('express'); const app…
-
0
votes1
answer2134
viewsHow do I run Cron Jobs in PHP?
I wanted to use Cron Jobs in these php: php. <tr> <td bgcolor="<?=$highlight?>"> <? require('config.php'); $sqle = "SELECT * FROM tb_ads WHERE user='$last' and ident='$id'";…
-
0
votes2
answers220
viewsHow 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 runs a class in Java? If so, how?
-
0
votes1
answer115
viewsHow do I know if there is a CRON working on the PHP 5.3 (Centos) garbage collector?
I have this mistake: ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied. The normal correction is to define session.gc_probability = 0 But in Centos, the correct thing is that…
-
0
votes1
answer362
viewsHow to schedule time-based tasks (Cron) using PHP ?
I am developing a module in the shop, and need to schedule some tasks based on time. For example : On day X perform the function Y of my module. Is there a way to interact with the prestashhop…
-
0
votes0
answers142
viewsHow to convert a date into a cron expression?
I am developing an application in PHP and Javascript to schedule some tasks. The user will have the possibility to configure from a graphical interface the date of execution of the task (with the…
-
0
votes1
answer77
viewsInterpret if link is running from browser or cronjob
I have a working cronjob but practically the link(PHP code) this public because for cronjob to work the authentication check system is disabled. So I’d like to know some way that this link do not…
-
0
votes1
answer294
viewsBest way to make PHP Schedule
Good Morning, Everybody I have a GSM PUSH panel for sending notifications android apps is already working perfectly, but now the need to make a scheduling of push messages. I thought to do a routine…