PDA

View Full Version : CURL or WGET CRON question


fitz
09-09-2006, 10:24 PM
I have a url that creates a file

http://finance.yahoo.com/d/quotes.csv?s=$goog&f=nsl1d1c1ohgv

i need to save the file in my directory so that another script can put it in my SQL DB... via a cron... this part is done

how do i save a file in my directory from the CRON?

this is what i tried...

wget -P http://finance.yahoo.com/d/quotes.csv?s=goog&f=nsl1d1c1ohgv >~/public_html/

thanks

fitz

fitz
09-10-2006, 11:16 AM
i figured it out... i wrote a curl php function and call that from the cron.


fitz