LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-05-2013, 05:55 AM   #1
eeluve
Member
 
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:
Code:
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. http://forums.freebsd.org/showthread.php?t=2863 -- last post.
Code:
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 06:40 AM.
 
Old 02-05-2013, 08:45 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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.
 
  


Reply


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 02:21 PM
problem with wget goncalopp Linux - Newbie 3 06-08-2008 08:46 PM
Wget problem theoldnyx Linux - Software 2 03-08-2008 07:29 AM
wget problem spx2 Linux - General 7 08-17-2006 06:25 AM
problem using wget, please help squirrel001 Linux - Networking 8 03-01-2006 08:01 AM


All times are GMT -5. The time now is 09:28 PM.

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