Results 26 to 32 of 32
Thread: Introducing Cron
Jul 23, 2007, 05:58 #26OoopsSitePoint Community Guest
I get an error on this line
stockcron NO such file or directory! :(
Sep 5, 2007, 16:27 #27smozgurSitePoint Community Guest
Thank you, Aaron!
I was able to make it work as by calling the script at php command line but it wasn't the way that made me convinced. wget worked great!
Nov 25, 2008, 05:09 #28ReaderSitePoint Community Guest
This is indeed a very good article. Thanks!
Feb 25, 2009, 02:54 #29StefanSitePoint Community Guest
As i recall, wget stores the result locally, as it is executed often can be a disk-space issue, one can use lynx -dump /path/ to/cron.php instead of wget
Mar 28, 2009, 19:31 #30Piotr KaletaSitePoint Community Guest
Ty for great article !
Mar 30, 2009, 00:08 #31saeedSitePoint Community Guest
you can used:
0 4 * * 1,2,3,4,5 /usr/local/bin/php /home/hostname/publichtml/mailstock.php
this is better and fast
May 8, 2009, 08:10 #32HellaSitePoint Community Guest
I'm not sure, if the cms caretaker of a customer got this of your page, but they told us to do the command "crontab stockcron" to enable a cronjob. Unluckily without providing the *file* stockron ... and probably without the idea such thing is necessary. It might be a good idea, to name the thing something like "newcron.txt" to emphasize the idea that this is a file.
will *overwrite a present crontab*, so I recommend to use
instead (will use the editor, which is defined in the $EDITOR environment variable).