I have just setup a cron job for the first time. It took some doing but I have it working in that it updates my rates now automatically. This is awesome. Here is how I am doing it:
1. I have a cron job run the following command: wget http://www.mysite.com/scripts/upd_rates.php
The email that I receive confirming is says that everything was okay and the file was downloaded. NOW, I don't really know what the command wget does. Does it actually download a file to the server? I don't really need to download it I just need it to run the .php file (since it is already on my server).
If there is a file downloaded and that is the only command that I can use to run it, where does it save the file? And how do i delete that downloaded file since I still have the original to run?
Any help is appreciated.
|