#!/bin/csh -f # acclog # ----------------------------------------------------------------------------- # C shell script to view HTTP access log # ----------------------------------------------------------------------------- # Usage: Run with -h or --help option to see usage. # Assumptions: # Effects: # Notes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ----------------------------------------------------------------------------- if ("$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t [options]" echo "options:" echo "-q = Quick. Most recent log only" echo "-h = Show this help info" echo "--help = Show this help info" exit 1 endif if ("$1" == "-q") then sudo_if_necessary cat /var/log/httpd/access_log \ | less else sudo_if_necessary cat /var/log/httpd/access_log-* \ /var/log/httpd/access_log \ | less endif