General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 14th, 2003, 01:29 AM
Alicia Alicia is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 116 Alicia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 27 m 49 sec
Reputation Power: 6
using CRON

Hi guys,

i learning how to use CRON and hope you guys can help..

this is what i got from the reference,
30 * * * * /usr/local/bin/php/home/user/crons/cronjob.php


i was told that:
/usr/local/bin/php/home/user/crons/cronjob.php
is the command that gonna be execute on the time set..

if i want to check whose account is going to expired(from database) and then send email to notify them everyday, will it work by using CRON ?

another question i wanna ask.. is it i must include this part:
"/usr/local/bin/php/home/user/crons/"
before my filename... my ftp server does not have home folder but public_html... is that mean i just change the home to public_html and user to my username only ?? is there anyway i can check what i suppose to use ? i seen some usr stuff from my phpinfo but not sure which one i sure refer to..

please advise.

Reply With Quote
  #2  
Old November 14th, 2003, 08:32 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
If you have command line access, go to the directory your script lives in and type "pwd" and return. This should return a full path. Use this instead of "/usr/local/bin/php/home/user/crons/." You will need the full path, though, or the crontab won't know where to look to run the job. Cron has nothing to do with whether or not your script will work. Write your script so that it works when you run it at the command line. Then add it to your cron job so that it runs for you on a schedule.

Reply With Quote
  #3  
Old November 14th, 2003, 07:37 PM
Alicia Alicia is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 116 Alicia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 27 m 49 sec
Reputation Power: 6
I can't really access the command line interface coz my host server is not managed by my company.. so, is there any other way i can do to check the path ?

PLease advise

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > using CRON


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT