Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wget now automatically redirecting output to a log file, how to return back to putting output below

Tags:

linux

wget

Whenever I used wget, the output and progress of the download would be displayed below.

I just tried using it today, and it only says 'Redirecting output to ‘wget-log.4’.'

Is there a way to bring it back to how it used to be?

Here's an example when I would run it in python 3

!pip install wget
!wget -i https://s3-us-west-2.amazonaws.com/ai2-s2-research-public/open-corpus/corpus-2018-05-03/s2-corpus-01.gz

Redirecting output to ‘wget-log.4’.

like image 387
SantoshGupta7 Avatar asked Sep 07 '18 01:09

SantoshGupta7


1 Answers

This feature was introduced in wget v1.19 and is triggered under various circumstances. It is generally considered a bug, see GNU Wget bug #51181: Unexpected "Redirecting output to 'wget-log'.". A reliable workaround is to add -o /dev/null.

like image 156
xebeche Avatar answered Oct 01 '22 01:10

xebeche