I have the following line in my shell script:
export URL=file://myhost/system.log
wget -v $URL
When I tried to run the script it give me the following error:
file://myhost/system.log: Unsupported scheme.
Does it mean wget supports http and ftp ONLY?
man wget
shows:
It supports HTTP, HTTPS, and FTP protocols, as well as retrieval
through HTTP proxies.
Try curl, it supports file URLs. Also note you probably want three slashes here. Two belong to the protocol indicator (file://) and one belongs to the path (/myhost/system.log)
export URL=file:///myhost/system.log
wget for windows doesn't support https
unsupported scheme
tested : GNU Wget 1.9.1, a non-interactive network retriever