QueueMetrics forum

QueueMetrics => Running QueueMetrics => Topic started by: hwjustin on December 28, 2009, 18:53:21

Title: Auto generate/email reports failing
Post by: hwjustin 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.
Title: Re: Auto generate/email reports failing
Post by: QueueMetrics on December 29, 2009, 16:30:29
What is your exact commend line for wget?
Title: Re: Auto generate/email reports failing
Post by: hwjustin 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"
Title: Re: Auto generate/email reports failing
Post by: QueueMetrics 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?
Title: Re: Auto generate/email reports failing
Post by: hwjustin 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".
Title: Re: Auto generate/email reports failing
Post by: QueueMetrics on January 13, 2010, 10:39:40
If you run a "man wget", does it show the -p option?