On Wed, 10 Jun 2015 07:41:39 PM ToddAndMargo wrote:
> On 06/10/2015 07:27 PM, ToddAndMargo wrote:
> > Hi All,
> > 
> > I am trying to get the actual address of Mozilla's mirror
> > for a script.  Currently, I can do it with
> > 
> > curl --head --max-time 20 --silent http://ftp.mozilla.org/ --output - |\
> > 
> >                 html2text -nobs -style pretty -width 132 | \
> >                 grep -i "Apache"                         | \
> >                 awk -F "Server: " '{print $3}' | awk '{print $1}'
> > 
> > And it does work.
> > 
> > Is there an easier way?
> > 
> > Many thanks,
> > -T
> 
> Dang the address it comes up with is bogus.

$ host ftp.mozilla.org
ftp.mozilla.org has address 63.245.215.56
ftp.mozilla.org has address 63.245.215.46

Reference them by IP?

-- 
Steven Haigh

Email: net...@crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to