Results 26 to 32 of 32
Thread: Introducing Cron
Jul 23, 2007, 04:58 #26OoopsSitePoint Community Guest
I get an error on this line
stockcron NO such file or directory! :(
Sep 5, 2007, 15: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, 04:09 #28ReaderSitePoint Community Guest
This is indeed a very good article. Thanks!
Feb 25, 2009, 01: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, 18:31 #30Piotr KaletaSitePoint Community Guest
Ty for great article !
Mar 29, 2009, 23: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, 07: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).