Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
164 views

avoiding buffered PHP output when launched from cron-dispatched shell script

My setup shares ingredients with many similar queries, but seems to have a unique problem to. it. I have a lengthy PHP process running at the command line with output to stdout. It is lengthy enough I ...
Nicholas Jackiw's user avatar
1 vote
0 answers
98 views

Why does the mysql client get "Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'" when connecting to REMOTE server?

I have two systems, a web server and a mysql server. The web server is having the issue where its mysql client fails on connecting a REMOTE mysql server with a shell script, triggered by a cron job. ...
Mike Kormendy's user avatar
0 votes
0 answers
101 views

cron job in Cakephp 3.4

Environment: Server: Xampp apache PHP: 7.1.33 I am going to call a function by schedule, I was tried to do this with cron job. But I am new to cron and cakephp. What I want to know is how can I ...
Senior Webdeveloper's user avatar
0 votes
1 answer
792 views

Stop executing cron job on specific condition

I have a DB with 2 tables: subscribers: _____________________________ | id | name | email | |________|________|___________| | 1 | John | [email protected] | | .. | .. | .. | |...
User1804's user avatar
0 votes
1 answer
100 views

How to write and execute cron job command in php script?

I'm trying to execute a cronjob command from the script for this I'm writing below code, but nothing is happening.Can someone please help me out here. $query ="INSERT INTO master_schedule_email(date, ...
Srikar Reddy's user avatar
-1 votes
2 answers
1k views

Bash executing PHP script - Permission denied [duplicate]

When my crontab executes this script it's sending me an email with this output. I'm not sure what the problem is. This is the output that I'm receiving. /bin/bash: /home/kingsms/public_html/cronsH....
Joy Barai's user avatar
0 votes
0 answers
43 views

Shell Script can be executed from terminal but not from the crontab

I have to export products in the .csv or .txt file automatically all the time for the price compare feeds. First, I was able to export products only via URL like this: https://site-name.com/Process/...
makoK's user avatar
  • 1
0 votes
0 answers
54 views

How to run php job every 30 minutes with different value?

I ask for your help because I'm literally going crazy (given that I do not have much knowledge about it, but I'm trying to understand something). This is my big problem : I have a php job. This job ...
Emanuele's user avatar
0 votes
1 answer
447 views

How to use Controller to send mail on New Event - Cakephp

I'm executing Cron job on windows to send mail using PHPMailer library cd /d c:\wamp64\www\project\bin cake users mail Edit : How to call function from another controller ? UsersController ...
user avatar
-1 votes
1 answer
358 views

PHP `exec()` doesn't work if run by a process initiated from Cron

I have a Beanstalk MQ where I put task to create APK, and a consumer named AppBuilder.php, which reads messages from Beanstalk MQ, and then exec the command which creates the App (android app). The ...
Jamboree's user avatar
1 vote
1 answer
276 views

Cron Jobs in CakePHP have suddenly stopped

I'm working on a system that is built with CakePHP 3.5, this system has multiple Cron Jobs that run throughout the day. These cron jobs have always been executed in the following format: /home/...
Jonathan's user avatar
  • 510
1 vote
1 answer
548 views

Fetching near-realtime data from external API

I'm looking for a sustainable solution to fetch data every x seconds (let's say 20) and store it in a relational database using PHP. After doing some research I found a few options: 1) Cronjobs (with ...
JasonK's user avatar
  • 5,294
0 votes
2 answers
588 views

Stop concurrent php jobs jobs run via cron job

I'm using Queuesadilla job queue plugin for CakePhp to manage several heavy duty tasks as data extraction from excel and so. I run the shell command with a cron job with an interval. However, if there ...
Süha Boncukçu's user avatar
1 vote
1 answer
469 views

How can I execute cakephp shell via cronjob in a different PHP-Version?

We are using Cakephp V2.10.3. In our Crontab we want to run a cakephp shell command in PHP V5.6. This PHP-Version is located in /opt/plesk/php/php5.6/bin/php. The Cronjob executes the following shell ...
Simon's user avatar
  • 4,583
0 votes
1 answer
314 views

include_once not working when using in shell script

I am running a php file using shell script like ./first.sh In first.sh I am running a php file using following command COMMAND="/usr/bin/php /home/mydirectory/public_html/members/cron/cron.php" ...
user3110655's user avatar

15 30 50 per page
1
2 3 4 5
7