Questions tagged [cron-task]

cron-task is a task (command or shell script) executed periodically at certain times or dates by the cron scheduler.

Resources

925 questions
-1
votes
2 answers

Executing AJAX written in a PHP script with cron

I've written a PHP script that reads data from Facebook user's profile and sends it to my server through AJAX. This script needs to run in intervals, so I added a cron. All the PHP functions and interactions with databases through MySQL are working…
new_user
  • 1
  • 3
-1
votes
3 answers

Cron Job - delete zip files from a specific directory

I am trying o delete all zip and rar files from a specific directory. I have set the cron to run a PHP file called cron.php, which is is located in a Joomla module directory. For test purposes, I have set the cron job time to 5 minutes. I also put…
Lodder
  • 19,758
  • 10
  • 59
  • 100
-1
votes
1 answer

cronjob help - need to update clients website "real time"

I am stuck with a project, its a quick fix project & i need some expert help on this please. My clients has two separate websites. 1. http://abc123.com/using-cron-job-update-this-folder.txt <-- I'm working on this 2. http://bw.aaaaaa.com/blah.txt …
-2
votes
1 answer

Run Cron Job every 5 minutes for 10 seconds

I have a script that I want to run every 5 minutes for 10 seconds. */5 * * * * /root/XXX/cronjobs/add-prod.sh It seems logical to have another cron job that would run every 5 minutes and 10 seconds that would turn off the 1st cron job. Something…
JAN
  • 21,236
  • 66
  • 181
  • 318
-2
votes
1 answer

crontab: stop for one hour in month

I have a folder where some files are written upon an event. I have a bash job that monitors the folder, upon recieving new file, it triggers a job to start. here is what i am doing currently in crontab @reboot /home/user/start_bash.sh and in…
sveer
  • 427
  • 3
  • 16
-2
votes
2 answers

Cron run schedule not running automatically on the server

I have this cron job code in Laravel-5.8 application: App/Console/Commands:
mikefolu
  • 1,203
  • 6
  • 24
  • 57
-2
votes
1 answer

How to force ubuntu server make command hourly?

with this crontab i force nginx and supervisor to do a command in every hour and in every 4 hours. But how can i force to make this command in every 10 minutes: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the…
Marhul88
  • 1
  • 2
-2
votes
1 answer

Cron job permission denied

I'm running a python script called TGubuntu.py. I used ls -l , and the permissions of the script are -rwxrwxrwx 1 ubuntu ubuntu 503 Jan 13 19:07 TGubuntu.py, which should mean that anyone can execute the file, right? But I still get in the log…
Exosylver
  • 135
  • 1
  • 14
-2
votes
2 answers

Schedule cron from 10PM to 1AM every half an hour

I am looking to schedule a cron from 10PM to 1AM(both inclusive) every half an hour . I tried this */30 22-0 * * * doesn't seem to work after 11:30 PM or to be specific this works till 11:59 PM I guess.
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
-2
votes
1 answer

How to run a cronjob every 50 minutes?

I want to run cron job in following manner 00:00 00:50 01:40 02:30 and so on how can i setup cron tab so it works like this
Arslan Ali
  • 231
  • 1
  • 4
  • 11
-2
votes
1 answer

cron job not retrieving web page content?

I am trying to use a cron job to preform daily calculation using url (GET 'https://www.t......com/bonus/go') and with the result link to my email. But I get this result in my email:
-2
votes
1 answer

How to play first n seconds of a mp3 track with systemd?

Here's my try: [Unit] Description=play the a team song [Service] ExecStart=/usr/bin/mpg123 /home/pi/Music/the_a_team.mp3 RuntimeMaxSec=10 The song plays 21 seconds and then stops. I don't get it. I also didn't find another solution like telling…
Lukas Kitsche
  • 147
  • 1
  • 1
  • 5
-2
votes
1 answer

Run script at 12 am at every time zone

I'm trying to run a .php script on at 12 am (midnight) for every timezone. My goal: I have a field in my database called time_zone. i need to send an email to that user in that "time zone" at 12 am. i looked into cron jobs but i don't think it works…
Jason Bale
  • 363
  • 2
  • 7
  • 14
-2
votes
2 answers

Cronjob on PHP function

I'm trying to add a cron in Ubuntu. This cron will execute a function in PHP for every 4 month. How could I do that?
Dimas
  • 1
  • 1
-2
votes
1 answer

cronjobs mysql table update from join of other tables

I have 1 master table that contains the data fetched from the join of other 3 tables. Those three tables are updated very frequently.I want to schedule a cron job that will change only those rows That were updated in those three tables. One way is…
1 2 3
61
62