[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-01-2005, 10:10 PM   #1 (permalink)
NamePros Regular
 
Join Date: Apr 2005
Posts: 353
65.00 NP$ (Donate)

flishess will become famous soon enoughflishess will become famous soon enough


Help with Cron Jobs

Hi -

I need help setting up a cronjob -

This is what the directions say to do -

Create a cron job to ensure that the page cron.php gets executed periodically. This page will close auctions, notify bidders, etc. The following is a cron to run daily at 12:15 am. You can change this once your site has heavier traffic to run more often however to start with once a day is highly recemmended.

Using Cpanel, access cron jobs off the main page. There, click on Advanced (Unix Style), and enter your email address then enter the following information in the box's: (15) in first box, (0) in second, (*) in third, forth and fifth, (GET http://yourdomain.com/cron.php > /dev/null) in the text field.

15 0 * * * GET http://yourdomain.com/cron.php > /dev/null

In my Control Panel this is what I see -

Command to Run (What goes here)

Email Address Where the Cron Output Will be Sent (I understand this part)

And then there are 5 boxes to set (I understand this part)

Can anyone help?

Thanks
Drew
flishess is offline  
Old 07-01-2005, 10:32 PM   #2 (permalink)
NamePros Regular
 
gamex's Avatar
 
Join Date: Feb 2004
Location: Student @ UConn
Posts: 408
73.95 NP$ (Donate)

gamex has a spectacular aura aboutgamex has a spectacular aura about


This looks like the directions for PHP Auction, anyways, check out this manual, it will tell you the command to put in depending on your server. Even if it isnt for phpauction, the command should be similar

1. Go to http://www.phpauction.org/manuals/gpl_ins_ht/index.html

2. Click on 'Manual Installation'

3. Click on 'Manual Configurations'

You will then see this (you wont need to do the above if you understand this):

--- In Linux if you have PHP installed as a module, you can create a file /etc/cron.daily/phpauction.cron with these contents:


#!/bin/sh

lynx -dump /dev/null http://www.mydomain.com/phpauction/cron.php


--- If you have (or also have) PHP installed as a CGI you can substitute the lynx call above with the following:


PHP /absolute/path/to/cron.php

Of course the path to cron.php will depend on where you installed phpauction. Be sure to give cron.php permission to be executable.


--- In Windows, you can add a task manager job phpauc.job


C:\php\php.exe c:\myweb\htdocs\phpauction\cron.php
__________________
Joe
CarrotCash.com
gamex is offline  
Old 07-02-2005, 02:38 AM   #3 (permalink)
Pro Coder & Designer
 
xlusive's Avatar
 
Join Date: Apr 2005
Location: Netherlands
Posts: 964
101.50 NP$ (Donate)

xlusive is just really nicexlusive is just really nicexlusive is just really nicexlusive is just really nicexlusive is just really nice


if you are using cpanel. then you have the option between standard and advanced, if you do advanced you can copy and paste the code. if you to standard then you have to manually adjust the time.
__________________
Online Dragonball Game
xlusive is offline  
Old 07-02-2005, 09:47 AM   #4 (permalink)
Account Closed
 
Join Date: May 2005
Location: NY, USA
Posts: 285
45.00 NP$ (Donate)

hasif has a spectacular aura abouthasif has a spectacular aura about


as you are beginned i will suggest you to use Standard option, that's the first i used, when i didn't understand anything about cronjob.
hasif is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
An Inspirational "Speech" From Steve Jobs Dave Zan The Break Room 1 06-16-2005 10:07 AM
Casino Jobs Monsterman Domain Appraisals 6 06-30-2004 08:06 AM
free jobs and paying jobs polandsprings Web Development Wanted 1 09-15-2003 02:43 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 08:55 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85