You are not logged in.

#1 2018-05-16 22:00:59

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

wget filling home folder with log files

today I opened up vifm to do some maintenance tasks, and I noticed that it took a solid 30 seconds to load my home folder, so I navigated down a bit and noticed that there were 375086 log files (no exaggeration) from wget. I opened up the last couple and half of them are blank, and the other half are from my script to check facebook for messages. the wget line from that script is the following:

fbFullString=$(wget --user-agent=Konqueror --load-cookies="$cookiesFile" -O - m.facebook.com)

I checked the man page and it states that it only logs if given the -o argument, which it wasn't

man page wrote:

Logging and Input File Options
       -o logfile
       --output-file=logfile
           Log all messages to logfile.  The messages are normally reported to standard error.

I'm a bit puzzled by this, and am wondering if I need to add -o - to all of my wget one liners. anyone else experiencing similar behaviour?

aside: I've never run into this error before today:

[ tye@t: ~ ]$ rm wget-log*
-bash: /usr/bin/rm: Argument list too long
[ tye@t: ~ ]$ l wget* | wc -l
-bash: /usr/bin/ls: Argument list too long

that's why I was using vifm to delete them hmm

Last edited by HiImTye (2018-05-16 22:28:37)

Offline

#2 2018-05-17 05:58:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Offline

Board footer

Powered by FluxBB