Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 14th March 2007, 21:14
md@waw.co.uk md@waw.co.uk is offline
Junior Member
Join Date: May 2006
Posts: 25
Thanks: 3
Thanked 1 Time in 1 Post
Default add cronjob to run a page on a website

I understand that to add a cronjob I use crontab -e

I want to send emails to customers once a day, I have the page set-up & if I open the page in a web browser it works.

the path is /home/www/web(number)/web/auto/mail.php

I added this to the crontab

00 01 * * * /home/www/web(number)/web/auto/mail.php &> /dev/null

I think this will run at 1am every day - but it doesn't work.

Can you tell me where I'm going wrong please.

I have set CHMOD to 777 for the file mail.php

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Default Holding Page mphayesuk General 13 7th July 2007 17:25
getting shared IP page instead of website andyreynolds Installation/Configuration 12 6th March 2007 18:42
not seeing shared IP page andyreynolds Installation/Configuration 2 22nd February 2007 00:24
Default page for new website.. mrdek11 General 3 7th February 2007 20:21
Website disabled with custom page and redirect. Herbert Feature Requests 3 7th August 2006 14:26

All times are GMT +2. The time now is 12:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.