image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old June 24th, 2004, 11:51 AM
Registered User
 
Join Date: Mar 2002
Location: Brooklyn, NY
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
mattmend is on a distinguished road
Question Where do I find 'GET'?

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
Reply With Quote
  #2  
Old June 24th, 2004, 12:57 PM
dafuser's Avatar
Land of Confusion
 
Join Date: Nov 2002
Location: Texas
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
dafuser is on a distinguished road
Quote:
Originally Posted by mattmend
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.
Look for wget, should be in FINK somewhere. It will get web pages via the command line
__________________
--
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.'"
Reply With Quote
  #3  
Old June 25th, 2004, 01:26 AM
profx's Avatar
ill never 4get watsisname
 
Join Date: May 2001
Location: Auckland New Zealand
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
profx is on a distinguished road
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
Reply With Quote
  #4  
Old June 29th, 2004, 01:04 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
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, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #5  
Old June 29th, 2004, 07:23 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
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
Reply With Quote
  #6  
Old June 29th, 2004, 10:29 PM
profx's Avatar
ill never 4get watsisname
 
Join Date: May 2001
Location: Auckland New Zealand
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
profx is on a distinguished road
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
Reply With Quote
  #7  
Old July 4th, 2004, 01:27 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
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
Reply With Quote
Reply

Thread 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:54 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.