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

how to run a php file from another server?

i am trying to do a video converter that grabs some files from a html form and converts them. i would like to do the conversion on another server, .11, since i don't want to overload the main server .10 i can set up a network folder between the two…
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337
1
vote
1 answer

How can I log into Facebook without user intervention?

What I have I have an app which able to get access_tokens of 2 hours and then 60 days. What I need I need to be able to run a cron job once once a month using my Facebook ID and password and tha run a ".php" file from my web server. I am able to set…
1
vote
0 answers

how to write command to run cron on hostinger

on hostinger I need to set up cron, for that I want to call controller function - my cron function located in public_html/admin/application/controllers/cron.php, here send_birthmail() has code to execute for cron in php , so what will be my command…
PRIYANKA
  • 11
  • 1
1
vote
1 answer

need an email notification service for my job portal website in django without html

I need an email notification service which sends emails to subscribed users who has subscribed for specific job location. If the location of the company and the subscribed location of the user are same an email should be sent to the user regarding…
1
vote
1 answer

Task scheduled as a cronjob not executing

On my Macos 11.6.1, I want to execute a script 'task1.zsh' with the following content #!/bin/zsh /usr/bin/touch /Users/user/Documents/cronjobs/hello.txt echo hello >> /Users/user/Documents/cronjobs/hello.txt the file task1.zsh has the following…
ecjb
  • 5,169
  • 12
  • 43
  • 79
1
vote
2 answers

Dynamic Crons are executed many times at the same time

I'm creating new CronJobs and scheduling them to run in the future, but when the execution time arrives, the same Job is fired three times. After the execution of the job I am removing it from the registry and even so it does not avoid the tripling…
1
vote
1 answer

Why my github action's cron is not working?

I have written a github actions workflow yml file to schedule a job to run everyday at a particular time but it's not working. I have even used the cron written in official doc but still it is not working. Is it due to Indian TimeZone or some other…
1
vote
2 answers

PHP str_starts_with and str_ends_with functions not working as expected

I have a php file that works well when I run it on browser but when I schedule it to run via cpanel cronjob, strangely it doesn't work. I spoke at length with the hosting company(namecheap) but they insisted the cron environment was ok, and the…
Chimdi
  • 303
  • 2
  • 7
1
vote
0 answers

How to run a corn job from 9:30am to 4pm for every half an hour

I want a expression for cron job which is going to run every half hour starting at 9:30am to 4:00pm from monday to friday. cron.schedule('30,*/30 9-15 * * 1-5', async() => { function() }); my Cron job is running every half an hour between 9:30 to…
1
vote
2 answers

php session sharing, in a desperate attempt to execute code in a different scope

I wonder why something like this wouldn't work (actually doesn't work): 4.php :
khael
  • 2,600
  • 1
  • 15
  • 36
1
vote
0 answers

Copying files from sharepoint to google cloud sotrage based on event trigger

i need to copy files from a sharepoint to GCS automatically: everytime there is a new file in the sharepoint,it should be copied automatically to GCS? any hint please ?
1
vote
1 answer

Check if shell script is already running (feh) (i3)

Inside my ~/Pictures/wallpapers/ folder I have a shell script that changes the wallpaper using a while true each time the sleep function terminates: feh-auto.sh #!/bin/bash while true; do feh /home/maruko/Pictures/wallpapers --randomize --bg-fill …
Mark
  • 21
  • 5
1
vote
1 answer

How to create a cron job that triggers every 6 minutes between 9 am and 1 am?

I am trying to create a cron job that triggers every 6 minutes between the hours of 9 am and 1 am. The code I currently have is below. */6 9-0 * * * The issue I am having is that this is being triggered every 6 minutes but it only happens between 1…
Gary Becks
  • 11
  • 2
1
vote
1 answer

Not able to run python file in Cron Job in putty

I am using Putty and it does not have Python3 it has python2 or python so tried both to run python file by using command 55 08 * * * /usr/bin/python2 /home/user/file.py and couple of other commands BUT nothing is working. The python file I have…
Ethan Smih
  • 83
  • 1
  • 9
1
vote
0 answers

How to run cron job only when making a get request & not everytime we start the server

I want the cron job to get triggered only when we make a get request, it does for the first time, but if I save it will re-run again. The code does not run whenever the server starts or restarts but as soon as I hit that specefic endpoint, It will…
Oussama Bouchikhi
  • 527
  • 1
  • 7
  • 22