Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [cron]

Cron is a time-based job scheduler in Unix-like computer operating systems.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

How could I make a vulnerable WordPress site that resets itself every 15 minutes? [closed]

I would like to add a vulnerable WordPress website hosted using docker as a capture-the-flag challenge to my website. Is there a way to reset it every 15 minutes to it's initial state? Are there any ...
pwn.guide's user avatar
1 vote
0 answers
73 views

Will deleting a cron job in CPANEL stop a running job?

I have a cron job in our CPANEL hosting. This is a laravel artisan command "queue:work". Now my problem is, the new code update is not reflecting unless I restart the command. I thought of ...
jreloz's user avatar
  • 111
0 votes
1 answer
100 views

WordPress: Click a menu item, but jump to http://iyfsearch.com/

It is very weird that when I click a menu item on my WordPress site, it additionally opens up a new tab loading a new page where its url is something like http://iyfsearch.com/?dn=jboxcdn.com&pid=...
SparkAndShine's user avatar
0 votes
1 answer
20 views

Disabling WHMCS Billing

I am currently taking over a business which is using WHMCS and CPANEL for hosting and I don't want to use this solution. The migration away from this system is going to take a while due to the ...
davidgo's user avatar
  • 7,959
2 votes
1 answer
254 views

I'm using PHP 7.1 but Hostgator says they are on 5.4, and Cron throws an error

Trying to make sense of this. Doing a quick phpinfo() I get: PHP Version 7.1.14 System Linux gatorxxxxx.hostgator.com n.nn.nnn-nnn.nnn.nnn.x86_64 #1 SMP Tue May 21 13:24:40 CDT 2019 x86_64 But ...
JVC's user avatar
  • 141
0 votes
0 answers
21 views

Cron job error in cPanel

I have a VPS server w/ preinstalled cPanel & WHM. I was trying to create a crob job but I got an error immediately after I clicked the "Add New Cron Job" button. Error /bin/bash: line 2: ...
Alex's user avatar
  • 1
2 votes
1 answer
6k views

How do I run WebSockets as a service when the web server starts and monitor it to make sure it is always running?

I need to run the PHP WebSocket scripted in PHP 24/7/365 as a service automatically whenever, the server restarts/stops/starts the process. The process must invoke automatically Suppose if we ...
Nɪsʜᴀɴᴛʜ ॐ's user avatar
1 vote
1 answer
727 views

Scheduling the task in the plesk control panel

How to run web socket scripts coded in PHP in the Plesk web hosting control panel. I need to run the PHP WebSocket scripted in PHP 24/7/365. The path of the script named websocket_server.php lies in ...
Nɪsʜᴀɴᴛʜ ॐ's user avatar
1 vote
0 answers
51 views

Moving files between directories automatically [closed]

I know what I am trying to achieve can be done via cron job, but I know nothing about coding this at all. I have a directory on a website that it updated with new files from an external source daily. ...
JS7319's user avatar
  • 31
1 vote
1 answer
420 views

Why is the php.ini timezone setting is not used to determine when a PHP cron job runs?

I use shared hosting at Bluehost and changed the default date.timezone to UTC in my php.ini. Everything works fine with my PHP script and date() return the UTC time as expected. The problem occurs ...
Florent's user avatar
  • 141
2 votes
0 answers
200 views

Sentora database dump works when run from command line, but not from cron

The Setup I'm running a webserver with CentOS 7.1 x64, Sentora, and suhosin module preinstalled. I need to trigger a PHP script which does this (among other things) echo exec('mysqldump -u'.USER.' ...
FiddlingAway's user avatar
0 votes
1 answer
3k views

How can I run a background PHP script on a hosting account like godaddy? [closed]

I need to run a PHP script 24x7 on the server I'll be hosting my website on (Probably Godaddy). The PHP script's job is to open a socket and wait for incoming connections. Once a connection is ...
Kushal Kumar's user avatar
5 votes
1 answer
2k views

Plesk scheduled task not working

I've got some problems with the scheduled task feature in Plesk while setting up a task that should execute a php-file every minute. As you can see in the screenshot, everything should be fine and ...
user avatar
0 votes
1 answer
1k views

updating SQL tables every x seconds (the right way)

I hope this is in the right topic area. Sorry if it isn't. I want to ask the right way to do this task. I have a few service API's I need to query every 30seconds or so that I would like to store in ...
Braxton Fland's user avatar
0 votes
1 answer
195 views

I have trouble setting up a cron job in Plesk after reading documentation. How do I do this right?

I have a WordPress plugin which doesn't work with WordPress' cron. I don't know why, it just doesn't, so I had to move the cron job to server side. At the moment I'm using php --no-check-...
Punct Ulica's user avatar
2 votes
2 answers
826 views

Cron job running at 12.00 AM despite changing its time

I have only one cron configured in cPanel for WHMCS to run once per day at 12.00 AM. The cron sends daily activity logs to my email. A problem came up recently in which cron job activity logs sent ...
Mina Hafzalla's user avatar
0 votes
1 answer
53 views

What method should I use for copying data from one table to another one?

I'm wondering what method I should use for copying data from one table to another one. I'm letting users post data through a form which uses table1 to save data. Now for displaying results I use data ...
brobken's user avatar
  • 157
0 votes
2 answers
1k views

Cron force unzip file

I have the following cron echo "*** Get the new ZIP file ***" /usr/bin/wget -t inf -nH -N -c --progress=dot --reject=zip --mirror --timestamping --timeout=60 --waitretry=60 --no-passive-ftp --...
Visual's user avatar
  • 3
3 votes
2 answers
6k views

How do I run something from the command line on shared hosting?

I have shared hosting and they haven't given me command line (or ssh or shell) access. Is there a way that I can run something from the command line?
paulmorriss's user avatar
  • 15.4k
2 votes
1 answer
249 views

Where can I find a good perl script for a cronjob that backs up all files in a specific folder on my webspace?

I want to automate backups on my webspace. My provider allows for cronjobs to be executed once a day. I have already implemented a cronjob that backs up my database with mySQLdumper, using a perl ...
PerlPig's user avatar
  • 21
1 vote
1 answer
520 views

Help me make a cronjob/screen command please?

Hi guys I want to set up a cronjob on reboot to do this cd /home/admin/vivalaminecraft.com && screen -d -m -S mcscreen && mono McMyAdmin.exe The issue is when I execute this it seems ...
Josip Gòdly Zirdum's user avatar
0 votes
1 answer
5k views

Retry cron job until it successfully excecutes

I'm running a python script on my VPS every day with cron. It only has 768mb ram, and when I run the script manually I often get memory errors from python. However, I usually can just try a couple ...
lavelle's user avatar
  • 103
1 vote
3 answers
2k views

How to setup Cron (Media Temple Dedicated Virtual/Parallels)

I am learning how to use Cron jobs. The server I am working on is Media Temple Dedicated Virtual Server. The "Control Panel" is Parallels. I cant find where I can setup cron jobs. Is SSH the only way?...
Jiew Meng's user avatar
  • 393
2 votes
1 answer
3k views

How can I call a URL as a cron job in Webmin?

(Possibly this belongs on stackoverflow, although it's not really a programming issue since the code works when run directly. If it needs to be moved, though, no problem.) I have a PHP file (which ...
EmmyS's user avatar
  • 365
0 votes
2 answers
290 views

Help with cron syntax

I need to setup a cronjob on my webhost. The documentation for my webapp reads as follows: you will need to create following cronjob: /public_html/cake/console/cake -app /public_html/app ...
Randy's user avatar
  • 121