[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

wget output

Hello,

I am using WGET to invoke a URL. My problem is that the URL is being invoked fine but its always creating a kinda log file every time the URL get invoked. Is there any flag to ignore the creation of these log files ?

 /usr/local/bin/wget -q  http://192.168.0.1/portal/abc.jsp

I have tried the flags -q and  -nv but its still creating the log files :(

-rw-r--r--   1 nagios   other        393 May  2 11:55 abc.jsp
-rw-r--r--   1 nagios   other        393 May  2 11:55 abc.jsp.1
-rw-r--r--   1 nagios   other        393 May  2 11:55 abc.jsp.2
-rw-r--r--   1 nagios   other        393 May  2 11:55 abc.jsp.3

TIA,

sg
0
sgaucho
Asked:
sgaucho
1 Solution
 
birthstarCommented:
wget actually gets the contents of the URL that you supply and is storing it into the files abc.jsp abc.jsp1 ...

If you don't want it to do this then try the --spider option

wget --spider  http://192.168.0.1/portal/abc.jsp

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now