开发者

How to wget a html file from a an administrative share on a Windows webserver

开发者 https://www.devze.com 2023-03-15 10:06 出处:网络
Is there anyway I am able to use wget in Unix to tr开发者_JS百科ansfer a html file from a Windows administrative share?

Is there anyway I am able to use wget in Unix to tr开发者_JS百科ansfer a html file from a Windows administrative share?

The file path I am trying to access is like the example:

www.webserv.com/share$/reportfolder/index.html

This is a very obtuse way of creating a monitoring script on a OS without the use of curl / Nagios / extra perl modules.

Any help given will be greatly appreciated.


Wget works only with http, https, and ftp protocols (man page)

if you need to access Windows files from Unix, you have several choices

  1. FTP
  2. You might look at Samba (http://www.samba.org)
  3. You can use SSH
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号