-1
votes
1answer
41 views

sending email from cron in html format not text

i am trying to send email every 1 hour from cron job which is executing a php script that fetches data from database and shows in a table format. i have CentOs 6.1 where i created my cron job.firstly ...
0
votes
1answer
48 views

Server incremental backup to AWS Glacier

I'm looking to backup various directories and files from a Linux server to AWS Glacier. I'm trying to work out the details on how to do manage this. Incremental Backups I want to upload files ...
-3
votes
1answer
42 views

Replace of cron job/cron tabs— Windows Scheduler [closed]

I want to know that there is any way to create an script on windows machine in PHP that should run after an interval, let's say every after 15 minutes. Currently I'm doing it using javaScript, but ...
-1
votes
1answer
331 views

Scheduled Task issue - /usr/bin/php/: No such file or directory

Can't get it working, I want to set up a cron job for a domain user in plesk 11.5, but seems that there's a problem to find the php executable. The command is: /usr/bin/php/ -f ...
0
votes
2answers
97 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
1
vote
1answer
86 views

Reliably running background operations

I'm looking for a recommendation on how to reliably run background operations. I have many servers posting operation messages to AWS SQS, and I have another server which will run these CPU intensive ...
0
votes
0answers
16 views

How do you setup a solid CRON job for a PHP process? [duplicate]

After lots of googling I have come up with something like the following to execute a PHP process every hour. However, it doesn't seem to work and there doesn't appear to be any errors in the syslog or ...
0
votes
2answers
61 views

Cronjob screen PHP does not executed [duplicate]

If I execute the following in the terminal it works: screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon If I write the following in a ...
-1
votes
1answer
218 views

Crontab is Not Running Crons [duplicate]

I have crontab setup on my CentOS VPS and it is not running... Here's the cron file: * * * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1min.php * * * * * php -f ...
-1
votes
2answers
93 views

Not sure how to set up cronjob properly to run php function

Im not sure on how I should do to set up a cronjob to run a php function for my website, and doing so by using a URL. I dont want any output etc, I just want the cronjob to run the php function buy ...
0
votes
3answers
346 views

script PHP doesn't work in crontab [duplicate]

Good morning, I have into my ubunut server a script that check into a database some value and if the condition is true send some email. If I launch into the browser the script like: ...
1
vote
1answer
171 views

What could cause a PHP script run as a cron job to end up in D state?

My server is running Ubuntu 12.04 LTS (precise) and I'm having a weird issue. The server is hosting a large website which is used for data collection. The website is in PHP and uses Zend Framework. ...
0
votes
2answers
403 views

Debian webserver - Crontab error (not running php script)

I've a webserver with several sites and I'm trying to run a script by crontab but it gives me a error (126 and 127) My script is in: /var/www/site1/script.php When I run the command: php ...
0
votes
2answers
414 views

Crontab on Ubuntu Server 12.04 doesn't run as it should (PHP script)

I have a PHP script which downloads and manipulate an image from some server and then saves it locally. Because image is update every 5 minutes I want to download and save that image every 5 minutes ...
5
votes
0answers
4k views

Do I really need the PHP maxlifetime hourly cron job? [closed]

On my Debian Wheezy, every half-hour a cron job runs: find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} ...
0
votes
1answer
39 views

Options for Executing Scheduled Scripts on a PHP Server

I have a server that I've setup running PHP. This serves JSON files and is running fine. I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and ...
1
vote
0answers
406 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
1
vote
1answer
151 views

Cronjob not working properly on debian

I'm trying to run a PHP script everyday at midnight, so my cron has the following entry @daily /usr/bin/php /websites/xxz/misc/wU5HaFre.php /websites/xxz/misc/wU5HaFre.php has 755 rights, so it's ...
0
votes
5answers
92 views

Where to store custom php scripts called via cron

I want to move my php scripts out of the /var/www so that they are not accessible via a URL. But where is the most logical place to store these?
1
vote
1answer
128 views

Linux cron spamming me then stops about php/suhosin

My server emails me when any messages goes to root. cron sends me messages. Today I got over 300 emails from my server all of which are PHP Warning: PHP Startup: Unable to load dynamic library ...
0
votes
3answers
332 views

cron job running repeatedly, why?

Why is this cron job executing repeatedly over time and what can I do to stop it? I have a cron job that is supposed to run at 4 each morning. It hits a php script that executes some daily data ...
3
votes
1answer
137 views

environment variables generated by at command

I'm inspecting /var/spool/cron/atjobs/a001cf01570e44 with cat, after running the at command from PHP using exec(). It looks like at has prepended the script with lots of APACHE environment variables. ...
2
votes
1answer
196 views

CLI SAPI based daemon, PHP app with cronjobs support

I need to build an CLI SAPI based daemon, PHP app with cronjobs support for iOS platform. We have dedicated server. What kind of PHP environment to run this type of PHP applications?
3
votes
2answers
2k views

How to run a daily cron job? [nginx] [duplicate]

Possible Duplicate: How to run a cron job? Server: nginx/0.8.54 OS: Ubuntu 11.04 Host: Rackspace UK Cloud Access: Full Root etc I have a PHP script in my cloud server: ...
2
votes
1answer
293 views

Cron Job Sending Bulk Emails at a time

I have developed a PHP script where I want to send automated mails to users. I successfully implemented a cron job with a PHP script which checks out a PHP mail queue table for pending mails. The ...
1
vote
3answers
267 views

Sending an email via cron

I'd like some advice on how best to send an email after running a SQL query. Every day, I would like to run a PHP/SQL script to identify users who should be emailed. After this runs, I would like to ...
0
votes
1answer
923 views

Cron job is not working receiving email No input file specified

I'm am in charge of a VPS with one hosted website. I need to run a crop job for the site and am having much trouble with it. From the cpanel for the site I'm running php -q ...
0
votes
2answers
452 views

Using crontab to delete tmp folder files created by apache user

Currently I have it set up such that users can download zip files from my site, and they're stored in /tmp/zip_file_dir/. The PHP script first downloads them from my CDN using ftp_get() and then ...
1
vote
3answers
3k views

Why is crontab giving “No such file or directory” error when the file DOES exist?

I am getting the following three lines in an error message in /var/mail/username after the following job runs in crontab... 15 * * * * ...
1
vote
1answer
1k views

syntax error near unexpected token `<'

I have set the php file in cron job on the parallel plesk 10.4.4 server.In notification email it is showing the errors. syntax error near unexpected token `<' syntax error near ...
1
vote
1answer
577 views

What is considered as output when running a PHP script cron job?

I am running a PHP script which inserts lines in a database every minute, using a cron job. My provider says: An email will be sent to this address ONLY if your cron produces output. If no output is ...
1
vote
2answers
319 views

Generate automated cron jobs at different hours

Greetings I'm new to cron. Is it possible to run automated cron jobs at random minutes for every hour? the syntax should be different every day, for example: ...
1
vote
2answers
386 views

'/var/spool/cron' is not a directory, bailing out. when trying to work with crontab via PHP's shell_exec

I am creating a web application. Part of the functionality is depending on that the user can start/stop a cronjob that imports emails. It doesn't work. Just to make sure I'm on the right track, as ...
0
votes
1answer
400 views

Debain cron help accessing a URL

The documentation says that I need to: If your hosting account is on LINUX/UNIX system you can setup a CRON job to point to this URL http://yourUrlToThisScript.com/cron.php?cron=do&d=31 ...
1
vote
3answers
261 views

Some $_SERVER parameters missing when accessing PHP script via Cron

I have a script that I need to run with PHP via cron. The original author of the script made a lot of user of certain $_SERVER parameters (like REQUEST_URI). But it appears that certain variables ...
0
votes
2answers
296 views

difference between /usr/bin/php and php in crontab

What is the difference between specifying "/usr/bin/php" and just using "php" when setting up a PHP script to run in my crontab? I would tend to just use "php" rather than the full path. 30 16 * * * ...
-2
votes
2answers
342 views

Cron job on Justhost not accepting parameters

I have a PHP web app on Justhost (webhosting provider). This PHP web app uses the Codeigniter framework. To run cron jobs on this web app (http://codeigniter.com/user_guide/general/cli.html): php ...
0
votes
1answer
981 views

PHP Cron - Max Allocation?

I'm getting email errors from a cron, on Ubuntu, that lives at: /etc/cron.d/php5 I didn't install that cron, so I'm guessing it is installed with PHP. Its contents are as follows: # ...
1
vote
0answers
212 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
0
votes
1answer
374 views

What do do about PHP sess_ files not being cleaned up due to cron error?

I've been getting an error in cron like this: CRON[17744]: (CRON) error (grandchild #17745 failed with exit status 1) in syslogs. I ignored it for a while (brilliant, I know), and then suddenly my ...
0
votes
2answers
640 views

linux crond not working

I have a cronjob which for creat thumbnails. the folder /var/www/html/work/ has permission 744(I think 744 is more safe than 777) Crontabs * * * * * /usr/bin/php /var/www/html/work/images.php php ...
-1
votes
1answer
119 views

Cron jobs starting, no finishing

We've just moved servers, from FreeBSD to CentOS. We have around 30 cron jobs which run throughout the day. Since moving, it seems that some cron jobs are starting but not completing. We can see they ...
1
vote
1answer
613 views

Set php environment variable for cron via Plesk admin interface

Within our application we make use of a environment variable named SERVER_ENV that is used to set whether we are in a production or development environment. This is set through the httpd.conf file ...
1
vote
1answer
154 views

Check if cron ran and have fallback

I have written a realtime bus tracking program that runs a cron every minute to check the service of the bus. In order to remove some server resources I am going to be creating an instance on PHPfog ...
0
votes
2answers
181 views

crontab command says permission denied

I am working on cent-OS server. I have two scripts to run by cron. Scripts are in PHP and i have a Apache module of PHP installed on cent-OS. One Script should run everyday at 6pm and other on every ...
1
vote
2answers
806 views

Why is my php script not running on boot? Running from command line works fine

I have placed the following information into my crontab file by entering "crontab -e" (in both root and "ubuntu" users, on a 32 bit Canonical Ubuntu AWS instance): @reboot /usr/bin/php ...
0
votes
2answers
108 views

cron job on server side [closed]

I want to perform a job every day on the server side, for example at 01:00 AM, and I was told that I can use a cron job. If I execute crontab cron.txt for a specific time, let's say 02:00 every day, ...
1
vote
5answers
5k views

How can I keep my server from being clobbered by zombies from this Ubuntu cron job to remove PHP sessions?

I recently noticed when I logged in that I had several thousand processes marked "zombie". Upon further investigation, I found the following from ps fax: 701 ? Ss 0:28 cron 3363 ? ...
0
votes
3answers
355 views

Cron job killing MySQL server

I have a CRON job calling a PHP script using wget; I've set it up like that as I have all the objects set up and can be used elsewhere in the site. Calling this PHP script by typing in the address ...
0
votes
3answers
133 views

load a php page with a cron job

I am using a cron job to reload my httpd service after a subdomain is created. I have the problem that when the reload happens the page that registers the user throws a server error. I was wondering ...