Go Back   Cyber Tech Help Support Forums > Operating Systems > Linux

Notices

Reply
 
Topic Tools
  #1  
Old May 6th, 2004, 12:49 AM
smudger's Avatar
smudger smudger is offline
New Member
 
Join Date: Apr 2004
Location: Ontario, Canada
Posts: 9
Linux/Unix Cron Job Hhelp with file handling

I am looking to run a cron job which will simulate a 'post' request (such as http://wxr.herenow.com/datapage.asp?...t_ip=hagsfd)to a remote website, which will return a CSV file which I then need to save on my web server to be accessed and parsed at a later date by a php script.

Can anybody help?
Reply With Quote
  #2  
Old May 6th, 2004, 03:02 AM
twistedcranium twistedcranium is offline
CTH Subscriber
 
Join Date: May 2003
Posts: 1,133
Hello there smudger!

as far as the 'post' request, maybe wget has something that you can use

http://www.gnu.org/software/wget/wget.html
Reply With Quote
  #3  
Old May 6th, 2004, 04:11 AM
smudger's Avatar
smudger smudger is offline
New Member
 
Join Date: Apr 2004
Location: Ontario, Canada
Posts: 9
Hi

Thanks

I figured it out with trial and error.

I created a php file with a require with the complete path and post data for the external dynamic page, then called the php script and dumped the output to a file on host.

This works great.

Thanks for the page link I will check it out also.
Reply With Quote
  #4  
Old May 6th, 2004, 04:13 AM
twistedcranium twistedcranium is offline
CTH Subscriber
 
Join Date: May 2003
Posts: 1,133
Quote:
Originally Posted by smudger
I figured it out with trial and error.
This is the method that I seem to learn things quicker by using it. Break it until it works!
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:33 PM.

[ RSS ]