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

Angular 4 Cronstrue Concept - converting cron expressions into strings[ From CronJobs into Cronstrue]

Any example is there for cronstrue concept for converting cron expressions into human readable strings in Angular 4. I need library or plugin in angular 4 for converting cronjobs schedule expressions into human readable strings[cronstrue]. If i use…
D.Sridhar
  • 139
  • 1
  • 4
  • 11
-1
votes
1 answer

Set up cron job every minute CPANEL

I tried to set up the cron job any minute, I tried 3 different commands. Any of them is not working. Below is the error:
kaki
  • 103
  • 2
  • 9
-1
votes
2 answers

Can't download XML file

I'm trying to download XML file from the remote URL without success. I can see its content in the web browser, but can't download it through command line ( I can download it manually save as from the web browser ). I'm using wget: wget -q -O…
Blackcoat77
  • 1,574
  • 1
  • 21
  • 31
-1
votes
1 answer

User defined cron job iis server

I want to execute a script at user defined day and time. I have read about cron jobs. Issue is that in cron job we have to define dtime. I also have read Create a cron job with user define dtime Where/How to execute shell_exec($cmd); command I am…
user1885057
  • 85
  • 1
  • 2
  • 12
-1
votes
3 answers

Python script not getting executed when put on crontab

I have written a python script which is reading some logs and then writing the required info into a csv file.Its working fine if I execute it manually by python myscript.py .However when I m calling it through cron its not working. I have tried: * *…
Piku
  • 31
  • 7
-1
votes
2 answers

How can i run cron-job every 1 hour in Ubuntu 14.04?

I want to run a cron for every 1 hour. What i tried : 0 */1 * * * /home/username/test.sh 0 * * * * /home/username/test.sh But, i am not sure, which one is right ? Can you please help me to decide . which one i should use?
s4suryapal
  • 1,880
  • 1
  • 18
  • 26
-1
votes
1 answer

How to check MySQL table updates and send mail using cron job

I write a request program which it contains send mail automatically whenever a new data is inserted. I want to use cron to active the request. Whenever MySQL is updated I want to receive a mail automatically.
ROHIT JHA
  • 21
  • 1
  • 7
-1
votes
1 answer

How to call a another python program from a python program and arguments are passed while calling

For eg, Script1.py contains program to add two numbers.i want to call this file from script2.py and passing values.how its possible? Note :file script1.py is not placed in same folder. Script1: num1 = a; num2 = b; //Add two numbers sum =…
Reshmy
  • 1
  • 1
-1
votes
2 answers

Send notification to user after a while Rails

I have this scenario: A user buys a product and when two days have passed after the transaction has been processed, I need to send a mail notification to buyer. At this moment my idea is to use whenever gem and check build a cron job to check in…
kitz
  • 879
  • 2
  • 9
  • 24
-1
votes
1 answer

How the cron timing is working?

Suppose, current time is 11:42 and i have setup one cron file to run at every 5 minutes. Then this file will run at which time 11:47 or 11:45? So basically i am trying to understand that how the cron timing is work? Edit : it was ran at 11:45,…
DS9
  • 2,995
  • 4
  • 52
  • 102
-1
votes
2 answers

Any java libraries to convert cron expression into interval?

Is there any java libraries which I can use to convert cron expression into time interval? It could be Seconds, Milliseconds, Minutes etc... Cron Expression (Input): 0/15 * * * * ? Output1: 15 (getInSeconds) Output2: 15000 (getInMilliSeconds)
Hemanth S R
  • 1,115
  • 2
  • 16
  • 27
-1
votes
1 answer

How to download attachement to the server using bluehost cron job

I would like to run a cron job executing php script. The purpose of the script is to create csv file with data selected from database and to save it on the server. This is a command I created: php -c /home1/breezeea/public_html/php.ini…
-1
votes
1 answer

How to set a Cron job in Every one hour from 9:00 am to 6:00 pm ( Monday to Friday )

How to set a Cron job in Every one hour from 9:00 am to 6:00 pm ( Monday to Friday) I am using Hostgator cron job to send mail every one hour, Now I want it from Monday to Friday. below is the link to screen…
Syam
  • 44
  • 1
  • 7
-1
votes
1 answer

Setting up cron at specific time

Even though this is simple, i just want to make sure. How do you run a cron schedule every 15minutes from 12pm to 12am is it: */15 12-00 * * * php mycommand.php or */15 12-24 * * * php mycommand.php Thanks,
user2720708
  • 455
  • 2
  • 8
  • 19
-1
votes
1 answer

spring cron jobs sceduler , monthly basis

What would be the spring cron-expression if I want to run a job in the last business day of the month. Like if the month ends in sat-sun I need to fire it on Friday. Business day includes Mon-Fri.
Raja
  • 305
  • 2
  • 4
  • 14