Sponsored Content
Full Discussion: Awstats stderr solution
Operating Systems BSD Awstats stderr solution Post 302227384 by otheus on Thursday 21st of August 2008 05:58:06 AM
Old 08-21-2008
So is there a program or script named "awstats" which is in a crontab? Let's say you have this job running every day at 2:30 am.

Code:
2  30  * * * /usr/local/bin/awstats

If you want it to only email you when there's a problem, just do this:
Code:
2  30  * * * /usr/local/bin/awstats >/dev/null 2>&1 || echo "awstats failed to complete"

This does require that the script exit with a non-zero condition upon an error. Do you have a way of testing this?
 

3 More Discussions You Might Find Interesting

1. BSD

can't install AWStats

I am running FreeBSD 6.3 and trying to install AWStats. I found this site with some instructions: Installing AWStats on FreeBSD however, the pkg install doesn't work. This is the error I get: dl1-3# pkg_add install -r awstats pkg_add: can't stat package file 'install' pkg_add: can't stat... (3 Replies)
Discussion started by: jasonfrost
3 Replies

2. Web Development

AWstats - Installation

Hi Gurus, I was trying to install AWstats in one of my EL5 boxes and got the below error: # rpm -i awstats-7.0-1.noarch.rpm error: Failed dependencies: perl(LWP::UserAgent) is needed by awstats-7.0-1.noarch # rpm -i perl-Test-Mock-LWP-0.05-1.el6.rf.noarch.rpm warning:... (1 Reply)
Discussion started by: Hari_Ganesh
1 Replies

3. Infrastructure Monitoring

Awstats webserver analyser

Need assistance in troubleshooting I have configured awstats 7.3 version on RedHat linux and I am stuck at getting the updates from the website . Please let me know if anybody can give me some inputs I can see the webpages but it gives "Never updated (See 'Build/Update' on awstats_setup.html... (2 Replies)
Discussion started by: ajayram_arya
2 Replies
CFETOOLDUMP(8)						User Contributed Perl Documentation					    CFETOOLDUMP(8)

NAME
cfetooldump - dump the contents of a database in XML format SYNOPSIS
cfetool dump name [--path|-p directory name] [--file|-f filename] [--daily|-d] [--weekly|-w] [--yearly|-y] [--verbose|-v] [--help|-h] DESCRIPTION
Prints the contents of the specified database in XML format, with comments for human readability. This format can be read by cfetool import. The -d, -w, and -y options specify which databases to include in the dump, and may be combined. If they are all omitted, the default is to only dump the weekly database. OPTIONS
--path|-p directory name Names the directory in which the database specified by name can be found. --file|-f filename Names a file to print the XML to. If this option is omitted, the XML will be printed to the standard output stream. --daily|-d Include the daily pattern database in the dump. --weekly|-w Include the weekly pattern database in the dump. --yearly|-y Include the yearly pattern database in the dump. --verbose|-v Print details of the command's execution to the standard output stream. When using this argument, it is recommended that you also pro- vide the -f argument, to avoid sharing the standard output stream. --help|-h Print a short help message and then exit. EXAMPLE
% cfetool dump temperature --path /my/path -f temperature.xml Prints the following to the file temperature.xml: <!-- cfetool Database Dump --> <dump> <name> temperature </name> <age> 1 </age> <!-- steps (0.001 weeks) --> <step> 10 </step> <!-- minutes --> <!-- consecutive updates --> <iterations> 1 </iterations> <!-- last update at Tue Aug 31 10:32:05 2004 --> <timestamp> 1093973525 </timestamp> <!-- current weighted average --> <expect> 7.105000 </expect> <!-- current variance --> <var> 38.280217 </var> <!-- data entries --> <entry> <timekey> Tue:Hr10:Min30_40 </timekey> <expect> 10.150000 </expect> <var> 13.245750 </var> </entry> </dump> AUTHORS
The code and documentation were contributed by Stanford Linear Accelerator Center, a department of Stanford University. This documentation was written by Elizabeth Cassell <e_a_c@mailsnare.net> and Alf Wachsmann <alfw@slac.stanford.edu> COPYRIGHT AND DISCLAIMER
Copyright 2004 Alf Wachsmann <alfw@slac.stanford.edu> and Elizabeth Cassell <e_a_c@mailsnare.net> All rights reserved. perl v5.8.4 2004-09-21 CFETOOLDUMP(8)
All times are GMT -4. The time now is 11:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy