hi don't forget to restart the cron service "shell>service crond restart" anyway another way to do this is to create a shell script that will call your php script and have it scheduled. sample script: #!/bin/bash #set env my_PATH="/path to php script/" cd $my_PATH PHP_BIN="/usr/local/php/bin/php" $PHP_BIN $my_PATH/yourfile.php Regards, Pacey --- zahari aziz <zeck82@xxxxxxxxx> wrote: > hi, > > how did the statement about that..i try that but the > cron cannot run..how the shell script cronjob to run > php.. > > zahari > --- Tony Jones <tjones10707@xxxxxxxxx> wrote: > > > Why can't you invoke PHP from a php script by > using > > a shebang line like #!/bin/php -q in your php > > script. Then you make the php script executable > so > > that it will execute, then in your crontab enter > 57 > > 0 * * * /home/vector/auto/test.php. > > > > Tony > > > > abhishek jain <ejaincom@xxxxxxxxx> wrote: > > > > --- zahari aziz <zeck82@xxxxxxxxx> wrote: > > > > > hi Gaurav Rustogi and everybody, > > > > > > i try type this code line at crontab > > > > > > 57 00 * * * root php > /home/vector/auto/test.php > > > 00 00 * * * root php > > /home/vector/auto/ghezak.php > > > > > > but this code cannot generate automatic .. > have > > > any idea about this, should i have to setting > > other > > > files. > > > > > > bye > > > zahari > > > > > > gaurav rustogi <gaurav_rustogi@xxxxxxxxxxx> > > wrote: > > > hi, > > > > > > u don't need to create shell script.. u have > to > > > write > > > php execution statement in the cron file... > > > > > > with proper time parameters... > > > > > > bye > > > Gaurav Rustogi > > > > > > --- zahari aziz <zeck82@xxxxxxxxx> wrote: > > > > > > > Hi everybody, > > > > I need a help. > > > > Have anyone know how to create shell > script > > to > > > run > > > > php script at the cronjob in linux Redhat > 9. > > > > > > > > Zahari > > > > > > > > Send instant messages to your online > friends > > > > http://uk.messenger.yahoo.com > > > > > > > > [Non-text portions of this message have > been > > > > removed] > > > > > > > > > > > > > > > > PHP Data object relational mapping > generator > > > > http://www.metastorage.net/ > > > > Yahoo! Groups Links > > > > > > > > > > > > php-objects-unsubscribe@xxxxxxxxxxxxxxx > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ___________________________________________________________ > > > > > > Yahoo! Photos � NEW, now offering a quality > > print > > > service from just 8p a photo > > > http://uk.photos.yahoo.com > > > > > > > > > PHP Data object relational mapping > generator > > > http://www.metastorage.net/ > > > > > > > > > > > > --------------------------------- > > > YAHOO! GROUPS LINKS > > > > > > > > > Visit your group "php-objects" on the web. > > > > > > To unsubscribe from this group, send an > email > > > to: > > > php-objects-unsubscribe@xxxxxxxxxxxxxxx > > > > > > Your use of Yahoo! Groups is subject to the > > > Yahoo! Terms of Service. > > > > > > > > > --------------------------------- > > > > > > > > > > > > > > > Send instant messages to your online friends > > > http://uk.messenger.yahoo.com > > > > > > [Non-text portions of this message have been > > > removed] > > > > > > > > Hi, > > I guess you have not written the proper shebang > > line . > > It must be #!/usr/bin/php or something specific > to > > your system. > > Pl. write this line at the first line of your php > > script. > > Thanks, > > -- > > Regards > > Abhishek jain > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > > PHP Data object relational mapping generator > > http://www.metastorage.net/ > > > > > > > > --------------------------------- > > YAHOO! GROUPS LINKS > > > > > > Visit your group "php-objects" on the web. > > > > To unsubscribe from this group, send an email > > to: > > php-objects-unsubscribe@xxxxxxxxxxxxxxx > > > > Your use of Yahoo! Groups is subject to the > > Yahoo! Terms of Service. > > > > > > --------------------------------- > > > > > > > > > > > > --------------------------------- > > Talk is cheap. Use Yahoo! Messenger to make > > PC-to-Phone calls. Great rates starting at > > 1¢/min. > > > > [Non-text portions of this message have been > > removed] > > > > > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/