Questions tagged [cron]

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

The name cron comes from the word "chronos", Greek for "time". Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email.

25 questions
5
votes
1 answer

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 executing the task seems successfully completed.…
user61972
3
votes
2 answers

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
  • 15,402
  • 1
  • 40
  • 59
2
votes
1 answer

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 consumers a National Weather Service web service via…
EmmyS
  • 365
  • 1
  • 4
  • 13
2
votes
2 answers

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 to me from that email noreply@yourdomain.com which…
Mina Hafzalla
  • 257
  • 2
  • 11
2
votes
1 answer

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 script. Now I want to use a script that backs up all…
PerlPig
  • 21
  • 1
2
votes
1 answer

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 when I try to install a cron that hits a URL every 30…
JVC
  • 141
  • 3
2
votes
1 answer

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 access the test.php from the browser…
2
votes
0 answers

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.' -p'.PASSWORD.' '.DATABASE.' | gzip >…
FiddlingAway
  • 195
  • 8
1
vote
1 answer

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 to create the screen but doesn't do the mono McMyAdmin.exe in the…
1
vote
0 answers

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 deleting the cron job thinking it would stop the…
jreloz
  • 111
  • 1
1
vote
1 answer

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 the path:…
1
vote
3 answers

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? Since I am unfamiliar, anyone care to give me…
Jiew Meng
  • 393
  • 3
  • 10
1
vote
0 answers

Moving files between directories automatically

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. After these files have been deposited in this…
JS7319
  • 31
  • 2
1
vote
1 answer

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 with the crontab, because when I enter a cron job to…
Florent
  • 141
  • 4
0
votes
1 answer

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

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 established, it receives some data from 'Somewhere' and…
Kushal Kumar
  • 1
  • 1
  • 1
1
2