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
2
votes
1 answer

Crontab - "bad day-of-week" error, when trying to schedule a task to run each other day-of-week using "dow/2"

I try to schedule a task in Ubuntu 16.04 using crontab: 45 2 * * 4/2 sh /var/lib/libvirt/images/backups/backup_res.sh I want it to be executed every other Thursday at 2:45AM. However, I keep getting bad day-of-week error. If I remove /2, it works…
2
votes
2 answers

How to run a bash script every hour and how to kill it on cloud desktop?

I want to run a bash script every hour in my cloud desktop which can be done by following commands: while true; do ./parseScript.sh; sleep 3600; done minute hour day month day-of-week command-line-to-execute But the problem is my cloud window will…
user6438693
2
votes
2 answers

How to call azure function with params

I am trying to use Azure function with to invoke the same function with different time and different param(url). I didn't find any good example that shows how to pass some data. I want to pass link to function. My code is: var rp =…
Vitaly Menchikovsky
  • 7,684
  • 17
  • 57
  • 89
2
votes
3 answers

Run Spring cron job at midnight

Do you know what is the cron expression for Spring @Scheduled annotation to run at mid night? This is the cron I currently use. I am not sure if its right. 59 59 23 * * * Please note that this is not quartz, its Spring so there are only 6 places,…
javing
  • 12,307
  • 35
  • 138
  • 211
2
votes
1 answer

Cpanel cronjob not working

I have a php script in root of my site. I have added a cronjob in my cpanel. It is working with basic database operations like shown below: connectToDB(); $data = date("Y/m/d…
Furkan KESKIN
  • 168
  • 3
  • 16
2
votes
0 answers

AOE Scheduler 500 Internal Server Error

I´m trying to set up AOE Scheduler command on my Godaddy´s cPanel but I get a 500 Internal Server Error. AOE Scheduler´s instructions say I should add these two command lines: * * * * * ! test -e /home/gimbals/public_html/maintenance.flag &&…
Pablo
  • 31
  • 5
2
votes
2 answers

Passing parameter in crontab through shell to php script

From my shell script test.sh I would like to pass some parameters to PHP script that would read them like: test.sh php -q /home/user/files/test.php "$1" "$2" php -q /home/user/files/test.php $1 $2 To test the passing of arguments I just read them…
Mark
  • 33
  • 6
2
votes
0 answers

Connect continuously websocket into local wamp server?

I have implement rachet websocket with codeigniter and it's working fine in localhost. This is a main server.php that we need to run from cmd require __DIR__ . "/../vendor/autoload.php"; use Chat\Chat; use Ratchet\Server\IoServer; use…
Jitendra Solanki
  • 343
  • 2
  • 6
  • 23
2
votes
1 answer

Which files do get_user() require on wordpress

I need to run a cron job on a wordpress site which in the script includes the function get_users() however because this script is a single file it does not include any of the core wordpress files. My question is which files do I need to include in…
2
votes
1 answer

How to create cron job that will run every month on second tuesday

I want to create cron jab that will run on every month on second tuesday. I created a cron job but I am not sure it is correct. Kinldy help me. * 0 * */1 2 test.sh
Harsha
  • 41
  • 3
2
votes
1 answer

Can't run a task schedule in Laravel using cron job in Godaddy

I am running my web app under godaddy shared hosting, and I am trying to run a cron job which will call my schedule task in my laravel app. For some reason the scheduler is not being called. These are the commands in godaddy that I have tried so…
artan
  • 45
  • 9
2
votes
2 answers

Cron Expression for every 30 minutes in quarter hour periods?

I am currently trying to generate a cron expression that runs every 30 minutes throughout the day but at hours like 10:15, 10:45, 11:15 and so on. I know that the cron expression 0 0/30 * 1/1 * ? * runs every 30 minutes but it does it at 10:00,…
user3116949
  • 265
  • 1
  • 5
  • 14
2
votes
1 answer

Laravel 4 CronJob Keeps Running

I have a weird situation here. I'm using Laravel 4 and linux crontab to run my cronjob, which is to send an email. For testing purpose, I set every minute to run the cronjob so that I could get my result instantly. crontab commands as below: * * * *…
hahahaha
  • 1,013
  • 2
  • 14
  • 41
2
votes
1 answer

Can’t get cron job working on ASUSTOR NAS model AS-302T

I’ve been struggling for weeks now trying to find any info on how to successfully setup a cron on my Asustor NAS, and would really appreciate any help. Here is what I have done via my favourite SSH program putty. I added my cron in the following…
w3shivers
  • 390
  • 4
  • 18
2
votes
1 answer

Crontab every other hour and then the other hours

I have crontab scripts that run every other hour 2 */2 * * * cd /home/myuser/scripts && ./script.sh 4 */2 * * * cd /home/myuser/scripts && ./script2.sh 6 */2 * * * cd /home/myuser/scripts && ./script3.sh 8 */2 * * * cd…
Romulus
  • 1,534
  • 2
  • 11
  • 18