Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-05-2013, 04:55 AM   #1
Registered: Nov 2011
Location: Russia, SPb
Distribution: all of 'em
Posts: 49

Rep: Reputation: Disabled
wget -O problem

I am trying to do something like:
wget --user=GOD --password='NOTSOGOD' -O /var/squid/logs/gunzip/badguy.html http://192.168.squid.server/stat/user_detail.cgi?year=2013&month=02&day=04&user=192.168.user.pc | mail -s "blabla" -F e@mail.local
but it losses everything past the year=2013 param. Could someone help? Not sure if I should dig into the .cgi or wget.

EDIT: OK, I am very stupid. Sorry, solved. ""
EDIT2: Anyone else wondering of something similar and under BSD(apt-cache showed its presence in debian repos aswell), I recommend biabam. -- last post.
wget --user=xxx --password='xxx' -O /var/squid/logs/gunzip/badguy.html "http://192.168.squid.server/stat/user_time.cgi?year=2013&month=02&day=04&user=192.168.bad.guy" && echo "your last 24 hour activity, copy to boss@domain.local" | biabam badguy.html -s "squid-server report" e@mail.local

Last edited by eeluve; 02-05-2013 at 05:40 AM.
Old 02-05-2013, 07:45 AM   #2
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Just to make the solution more explicit, to solve the problem you put the string that contained the character '&' inside double quotes.

Well done for solving the problem, please mark the thread as 'SOLVED' using the link at the top of the page.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resume an interrupted wget using wget.log? misterJ Linux - Software 2 06-19-2011 01:21 PM
problem with wget goncalopp Linux - Newbie 3 06-08-2008 07:46 PM
Wget problem theoldnyx Linux - Software 2 03-08-2008 06:29 AM
wget problem spx2 Linux - General 7 08-17-2006 05:25 AM
problem using wget, please help squirrel001 Linux - Networking 8 03-01-2006 07:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration