Wednesday, September 9, 2015

Downloading file using WGET when run under CMD file

I'm trying to download a photo from the internet but an error always occur.
I tried to run the command under a batch program ".cmd" with the following codes in it:
wget http://weather.is.kochi-u.ac.jp/SE/00Latest.jpg


but I always get the error:
Connecting to weather.is.kochi-u.ac.jp:80...
connect: No such file or directory


I tried several options such as --user --user-agent --proxy --tries but does not work.


I'm working from my office and we have a proxy server in order to get into the internet. I'm not sure whether this affects my command using the wget.


I do have a command using powershell -Command and it works fine but could not run under task scheduler and so I opted to use the wget as most recommended this. However, I could not seem to get it going when test trying it.


Anybody here can point me to the right direction? I'm not a programmer or someone with great knowledge on that field but I'm knowledgeable enough to learn and understand. TIA.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...