Questions tagged as 'crontab'

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

How to make crontab run a script in Python

I'm trying to schedule a script I wrote in Python to run in crontab , but I'm not able to do it. The script is simple thing, it makes a telnet connection through the terminal and sends some commands. I was able to schedule a shellscript , howe...
asked by 09.03.2018 / 02:46
1
answer

How to treat avariety in bash?

I'm having a problem, I'm doing a bash script to run using crontab, which syncs my ssd files with the hd and dropbox. Script: #!/bin/bash - PC_DIR="~/Programming" DROP_DIR="~/Dropbox/Programação" PC_FILES="$(find ${PC_DIR} -follow)" DROP_...
asked by 20.12.2017 / 04:40
1
answer

execute shell file in ubuntu by crontab

I'm trying to do a task schedule in linux to run a sh file, however, it does not run by crontab , but it does when done in the hand. I did a scheduling test to create a text file, it works, but to run sh does not. Here...
asked by 08.06.2017 / 13:01
1
answer

Configure log in crontab

I use 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 it has any errors it will write to the file. The problem is...
asked by 21.02.2018 / 15:12
2
answers

Crontab function does not work

I have a script in php that performs (should at least) some recordings in a txt: 25 11 * * 1-5 wget -q --spider http://10.24.0.42/felipe_projetos/DD/CREATE_TABLE.NULL.IN.php However, recording does not occur. I suspect at first that the err...
asked by 06.03.2018 / 15:34
0
answers

CRONTAB Execute for a certain time

Hello, I'm having problems executing the php document root directly in crontab current rule working correctly    23 23 * * * sleep 33 & wget -t 1 -T 1800    link Explanations 23:23 // run every day at eleven twenty-three sleep 33...
asked by 22.04.2018 / 13:41
0
answers

Linux is not writing txt

I have a code that should be executed by a Cron function from Monday to Friday at 7 o'clock. 00 7 * * 1-5 php /var/www/html/felipe_projetos/Poc/ch_ch.php This code should write some data in a txt, but this does not happen, when I run the pa...
asked by 11.12.2017 / 13:03
0
answers

cronjob curl does not work in aws

Hello, I'm trying to generate a cronjob in Amazon Web Services (aws), tried it in several ways but it does not work. Here is the code:    * / 2 * * * * / usr / bin / curl link using only    / usr / bin / curl link Direct works...
asked by 29.09.2016 / 21:07
1
answer

Crontab does not execute script

I'm trying to run a script through centos crontab, I'm doing this: crontab -e Then I put: */1 * * * * root /home/websites/public_html/admin/functions/open.sh obs: Before doing this, add permissions to the file chmod +x open.sh I'm...
asked by 10.07.2017 / 17:13