Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [cron]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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: ...
0
votes
0answers
29 views

What Is The PHP Binary

I was setting up a cron job in cPanel and started with usual: /usr/local/bin/php I'm an SEO and not an admin or dev so I've never really thought to wonder what I'm actually doing. I get the broad ...
2
votes
1answer
1k 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 ...
1
vote
1answer
238 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 ...
1
vote
0answers
29 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. ...
1
vote
1answer
222 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 ...
2
votes
0answers
148 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.' ...
0
votes
1answer
2k 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 ...
5
votes
1answer
953 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 ...
0
votes
1answer
207 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 ...
0
votes
1answer
120 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-...
2
votes
2answers
516 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 ...
0
votes
1answer
47 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 ...
0
votes
2answers
733 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 --...
3
votes
2answers
4k 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?
2
votes
1answer
238 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 ...
1
vote
1answer
514 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 ...
0
votes
1answer
3k 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 ...
1
vote
3answers
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?...
2
votes
1answer
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 ...
0
votes
2answers
285 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 ...