|
#1
| |||
| |||
| Hi - I need to set up a cron that periodically performs the following command: "GET http://someurl.com" None of my machines seem to recognize 'GET'. What do I need to install to provide this capability? I have Fink installed so if it's a Un*x/BSD app, I should be able to find it there. Just not sure what to look for. TIA - Matt |
|
#2
| ||||
| ||||
| Quote:
__________________ -- Dafuser "I picked up a Magic 8-Ball the other day and it said 'Outlook not so good'. I said 'Sure, but Microsoft still ships it.'" |
|
#3
| ||||
| ||||
| just use curl - it should already be installed
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge |
|
#4
| ||||
| ||||
| I agree with profx, just use curl. BUT if you want to use wget you can install it from fink (`sudo fink install wget`) I don't have get and I couldn't find it on sourceforge either (at first glance).
__________________ michaelsanford.com Blog Twitter Tumblr LinkedIn iMac Aluminum 24" | MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2120 GB RAID 1, 2500 GB RAID 0 |
|
#5
| ||||
| ||||
| if curl works for you it's probably easiest. wget lets you define more stuff, like making the script send specific cookies or user-agent strings.
__________________ What is the robbing of a bank compared to the founding of a bank? -- Bertold Brecht |
|
#6
| ||||
| ||||
| curl does: user agent cookies http authentication compression http referrer max transfer rate supports http https ftp proxy support get/post on http sounds like i'm trying to sell you something... i'm not... honest!
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge |
|
#7
| ||||
| ||||
| Right - I remember now the thing I needed wget for - it parses html, and recursively downloads the linked files. Also it will do things like act as a spider: not save the files, just check that the links are valid.
__________________ What is the robbing of a bank compared to the founding of a bank? -- Bertold Brecht |
![]() |
| Thread Tools | |
|
|