Graham Burgess wrote:
> 
> I am trying to get this command to work
> 
> wget http://www.virtual-london.co.uk/schools/default.asp?schoolID=CookSch1
> 
> But every time I run that command I get it coming up with:
> 
> /usr/local/bin/wget: No match.

This is bash (i.e. your shell) that it couldn't find any file that match
the globbing that you asked it to do before calling wget. Try escaping
the question mark or quoting the URL:

wget
http://www.virtual-london.co.uk/schools/default.asp\?schoolID=CookSch1
 or
wget
'http://www.virtual-london.co.uk/schools/default.asp?schoolID=CookSch1'

> 
> I am using wget 1.5.3

Note: the latest vesion is 1.6 available from GNU mirrors. Look at the
web-site (http://sunsite.dk/wget/)

> 
> What I am trying to achieve actually is to download a cam image through HTTP
> and then archive said image onto our site. I have tried to do this from the
> webcam end but the image we want can't be transmitted via FTP. So my plan is
> to use wget on our Unix mail server to d/l and rename the image so it is in
> the format cam010101.jpg so each image downloaded is in date order, then I
> was planning to use ncftp to transmit the image up to our W2K webserver.
> Now I have found there is a windows version which raises 2 questions:
> 
> 1. Can wget change the file name to include a date? If not I will have to go
> the UNIX method?

What about something like:
wget -O cam`date +%y-%m-%d`.jpg 'http://....'

Hint: bash, date ... are ported to Windows. http://www.cygwin.com/ for a
unix-like environment or http://www.mingw.org/ for a windows-like one.

> 2. How can I run it so it acts like crontab does on UNIX and schedules its
> excution for once a day?

Use the scheduler and at. Remember to use absolute paths or cd to the
revelant directory (and drive)

> 
> Any help would be useful.
> 
> Graham Burgess
> Vip Internet

-- 
Med venlig hilsen / Kind regards

Hack Kampbjørn               [EMAIL PROTECTED]
HackLine                     +45 2031 7799

Reply via email to