Most voted "crontab" questions
21 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…
-
3
votes2
answers284
viewsSchedule Crontab task by script.sh
I want to schedule the crontab through a script.sh. I tried to add the following line inside the script.sh: echo "00 01 * * * retag /retag/licenca.sh" >> /etc/crontab It worked, but he adds a…
-
3
votes1
answer2703
viewsHow to make crontab run a Python script
I’m trying to schedule a script I wrote in Python to run on crontab, But I can’t do it. The script is simple thing, it makes a telnet connection through the terminal and sends some commands. I…
-
2
votes1
answer1801
viewsexecute shell file in Ubuntu by crontab
I’m trying to make a task schedule on linux to run a file sh, does not, however, implement the crontab, but execute when I do it in hand. I did a scheduling test to create a text file, it works, but…
-
2
votes1
answer157
viewsHow to treat variable in bash?
I’m having a problem, I’m making a bash script to run using crontab, which synchronizes my SSD files, with the hard drive and Dropbox. Script: #!/bin/bash - PC_DIR="~/Programming"…
-
2
votes1
answer263
viewsgdrive error in crontab
I am trying to accomplish a way to perform a backup using mysql and transfer the data to the cloud from google drive. I am using the mysqldump to carry out the backup and the gdrive to upload to the…
-
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
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
votes0
answers38
viewsProblems with crontab and Git push script
I created a scrip . sh to update my repository in Git Hub. Manually the scrip runs perfectly. #!/bin/bash cd /home/user/tmp/ git init git add . git commit -m "`date +'%Y_%m_%d'`" git push --force…
-
1
votes2
answers139
viewsCrontab function does not work
I have a php script 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, the recording does…
-
1
votes0
answers132
viewsCRONTAB Run for a certain time
Hello I’m having trouble running php’s Document root directly on crontab current rule working correctly 23 23 * * * Sleep 33 && wget -t 1 -T 1800 http://www.dominio.com.br/script.php…
-
0
votes1
answer123
viewsCron job that runs a bash script (which runs a python script) behaving differently than when executed manually
Hello.. I have a python script that plots two different graphs and that needs to be run daily to update these graphs on a website The data that is used by this script, is in a certain directory in…
-
0
votes0
answers37
viewsConfiguration of the CRON
I’m trying to run a file in cron, but I’m not getting it. It would have some extra configuration that needs to be done? [root@ip-172-31-35-95 ec2-user]# crontab -l 1 * * * * php…
-
0
votes1
answer49
viewsDoubt of Linux Crontab
When I type crontab-l I see the schedules When I type-crontab and I can edit the schedules what happens if I just type crontab ? I’m still a beginner on Linux
-
0
votes1
answer937
viewsCrontab does not execute script
I’m trying to run a script by crontab of centos, I’m doing so: crontab -e then put: */1 * * * * root /home/websites/public_html/admin/functions/open.sh Obs: Before doing this, add permissions to the…
-
0
votes0
answers192
viewsCron does not work
I’m trying to run a file .sh to perform a backup of my database, but for some reason the cron to run this file is not working. I’ve tried to make a lot of changes, but nothing works. All other cron…
-
0
votes1
answer44
viewsCrontab stops working when Oracle connection arrives in PHP
I am trying to run a routine by crontab, but it hangs on the connection to the Database. But if I run the file normally as: php /var/www/html/pasta/teste.php He returns the data to me normally: This…
-
0
votes1
answer193
viewsCron having trouble running PHP file
I have a problem executing my tasks in Cron. When I access the script to be run by the browser it works normally, but when it is run by cron, I get the following error: PHP Warning:…
-
0
votes0
answers12
viewsUse of Delete and get in crontab
Closed. This question is out of scope and is not currently accepting answers. Despite being about programming, this question does not seem to meet the minimum criteria of quality and detail for a…
-
0
votes1
answer417
viewsHow do I check if today’s date matches a date created in a Django application?
I have an app that gets the day of the week and the time when an event should occur. In addition, it also receives the period of time that people must confirm presence. My model goes below: def…
-
0
votes1
answer30
views(Python + Mysql) Enter the database password automatically in a dump
I am creating a Python script that backs up the company database I work on and it will run on crontab weekly. My doubt: How to enter the password automatically, since it is requested after the…