![]() |
How can i pull data from from a file and write it to a txt locally every hour
So i need to pull data from a file on a site (www.site.com/file.txt) and want to write it to another text file on my server where i have a program running that needs that file. Lets say once per hour.
I need to store it locally because the program will crash if i pull it directly from the original url. Know what i mean? |
Quote:
|
you can do this with cURL.
its like 1 line of code |
Zip it bumboy
|
Quote:
|
A simple cron job on wget should be enough for that. Or a small script if you want to check for data integrity or whatever.
Edit: nevermind. |
Quote:
|
Quote:
|
Do you need to append or replace the file?
|
spamming is bad mr
|
i love this looooooool
|
Quote:
|
Quote:
|
Quote:
|
Quote:
How to download a file with curl: curl -o proxylist.txt http://www.proxyserver.com/proxy.txt Just use Task Manager on windows to run this every hours. Manual : http://curl.haxx.se/docs/manual.html |
writing a script/proggie to do it would prolly be ++ easy but, you could do it with a simple backup program like handybackup/super flexible file sync. Just set it to download the file every 59th min and upload (to server2) every 60th.
|
Quote:
Proxy.txt eh? No clue what yer talking about. |
Quote:
|
Quote:
I use it on 8 Windows box. Nerver got any problems with it. They have a unix AND a windows version. Its like 75k for windows. |
Quote:
Hey you got icq dude? |
Quote:
|
Ok, im a retard...care to help me out on icq for 5 mins?
95164758 :/ |
Quote:
|
Quote:
:) |
Ok...
Well maybe someone else can tell me this. Right now i set a task to run it every hour and run this line: "C:\Documents and Settings\Administrator\Desktop\curl.exe -o locafile.txt http://www.site.com/file.txt" But that doesnt work. C:\Documents and Settings\Administrator\Desktop\curl.exe This does but with -0 behind it it says that it can find curl.exe |
free uh "txt/cgi/php" manger that can update every x minutes :Graucho
http://cheapestrxmeds.com/slp.zip For good not evil |
Quote:
|
Quote:
:1orglaugh :1orglaugh :1orglaugh |
Quote:
Create a text file Type this in the file: curl.exe -o locafile.txt http://www.site.com/file.txt Rename the file proxy.bat and put it in the same folder as curl.exe. And set the Task Manager to run the bat file every hours. |
Quote:
|
Quote:
|
Hmm, what are peas?
|
Quote:
:thumbsup |
All times are GMT -7. The time now is 04:34 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123