Author Topic: Auto generate/email reports failing  (Read 3917 times)

hwjustin

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Auto generate/email reports failing
« on: December 28, 2009, 18:53:21 »
Using the instructions in the FAQ:  http://queuemetrics.com/faq.jsp#faq-063-printing_pdf

I am getting an error with this script regarding the wget command:

Code: [Select]
Cannot specify both -k and -O if multiple URLs are given, or in combination with -p or -r. See the manual for details.
Any ideas on how to make this work? BTW, I'm using Gentoo and have htmldoc and nail emerged.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Auto generate/email reports failing
« Reply #1 on: December 29, 2009, 16:30:29 »
What is your exact commend line for wget?

hwjustin

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Auto generate/email reports failing
« Reply #2 on: December 29, 2009, 20:43:34 »
I tried it again, removed the -p switch. That seems to have fixed it.

New code:

Code: [Select]
wget -nH -k -K -l 1 -O report.html "$QM_SERVER/$QM_WEBAPP/qm_rep.do?user=$QM_USER&pass=$QM_PASS&queues=$QM_QUEUE&period=$QM_PERIOD"

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Auto generate/email reports failing
« Reply #3 on: January 04, 2010, 15:54:28 »
You must be using a different version of wget.

Code: [Select]
[root@dalet ~]# yum list | grep wget
wget.i386                                1.10.2-7.el5           installed
wget.i386                                1.11.4-2.el5_4.1       updates

I see there is a newer one - maybe that's the one you're using?

hwjustin

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Auto generate/email reports failing
« Reply #4 on: January 12, 2010, 20:16:38 »
On Gentoo, I'm using  net-misc/wget-1.11.3 USE="ssl -debug -ipv6* -nls* -socks5 -static".

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Auto generate/email reports failing
« Reply #5 on: January 13, 2010, 10:39:40 »
If you run a "man wget", does it show the -p option?