|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > using CRON |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|