Php Cron Job

liunx

Guest
:wallbash: <br />I am new to this and I do not know how to handle it.<br />I have installed <a href="http://www.k5n.us/index.php" target="_blank">webcalendar</a>. and it is working however I am trying to make a reminder but the problem is that I can not understand the <a href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/webcalendar/webcalendar/docs/WebCalendar-SysAdmin.html?rev=HEAD&content-type=text/html#reminders" target="_blank">user manual</a>.<br /><br />The manual mentions that it should be php CGI cron job, and if I can not make it I should a server base cron job. Is there anybody who can give me the lead how to fix this. I am adding the instructions below:<br /><br /> To set this up in cron, add a line like the following in your crontab<br /> * to run it every 10 minutes:<br /> * 1,11,21,31,41,51 * * * * php /some/path/here/send_reminders.php<br /> * Of course, change the path to where this script lives. If the<br /> * php binary is not in your $PATH, you may also need to provide<br /> * the full path to "php".<br /> * On Linux, just type crontab -e to edit your crontab.<br /><br />thanks for help, shahram<!--content-->
I just wanted to mention that I have added a cron job in the cpanel:<br /><br />php -q /home/username/public_html/calendar/tools/send_reminders.php > /dev/null<br /><br />I am not sure whether this will do the job or everything is in perfect order. Any suggestion would be great.<!--content-->
cPanel provides 2 ways of entering a cron job. If you are unsure of how to build a cron job I suggest using the STANDARD method and not the ADVANCED.<br /><br />When you select the STANDARD method choose the following from the boxes provided.<br /><br />Every 10 minutes in the minutes box<br />Nothing selected in the hours box<br />Everyday in the days box<br />Every Month in the months box<br />Every Weekday in the weekday box<br /><br />For your job you can use this:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->/usr/bin/php -q /home/your-cPanel-name/public_html/calendar/tools/send_reminders.php >/dev/null<!--c2--></div><!--ec2--><!--content-->
Thanks. I will try and let you know if there is any problem.<br />Happy Holidays<br /><br /><br /><!--quoteo(post=159216:date=Dec 19 2005, 07:54 AM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Dec 19 2005, 07:54 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=159216"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->cPanel provides 2 ways of entering a cron job. If you are unsure of how to build a cron job I suggest using the STANDARD method and not the ADVANCED.<br /><br />When you select the STANDARD method choose the following from the boxes provided.<br /><br />Every 10 minutes in the minutes box<br />Nothing selected in the hours box<br />Everyday in the days box<br />Every Month in the months box<br />Every Weekday in the weekday box<br /><br />For your job you can use this:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->/usr/bin/php -q /home/your-cPanel-name/public_html/calendar/tools/send_reminders.php >/dev/null<!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd--><!--content-->
I did so but no success so far. I was wondering if this can happen by enabling magic_quotes_gpc<br />"http://sourceforge.net/forum/message.php?msg_id=3486370" from server side.<br /><br />Is there anybody who has any experince with webcalendar and run into the same problem?<br />Thanks<!--content-->
I could find the problem in source code and solved it but now I am facing a problem in cron job.<br /><br />I am runing the php file with adress bar <!-- m --><a class="postlink" href="http://*****.com/calendar/tools/send_reminders.php">http://*****.com/calendar/tools/send_reminders.php</a><!-- m --><br />and it sends the reminders and I have set two cron jobs to verify whether it works or not but non works:<br /><br />first one: * * * * * #!/usr/local/bin/php -q /home/ID/public_html/calendar/tools/send_reminders.php > /dev/null<br />second one: ***** /usr/local/bin/php -q /home/ID/public_html/calendar/tools/send_reminders.php > /dev/null<br /><br />I am just wondering whether I can put the adress in the cron tab or not. <br /><br />Please let me know if you know what the problem is.<br /><br />thanks<br />Happy Holidays<!--content-->
 
Back
Top