From owner-freebsd-questions Tue Jul 22 20:37:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA20742 for questions-outgoing; Tue, 22 Jul 1997 20:37:14 -0700 (PDT) Received: from luke.cpl.net (luke.cpl.net [206.85.245.131]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA20736 for ; Tue, 22 Jul 1997 20:37:11 -0700 (PDT) Received: from localhost (shawn@localhost) by luke.cpl.net (8.8.5/8.8.5) with SMTP id UAA01841 for ; Tue, 22 Jul 1997 20:37:09 -0700 (PDT) Date: Tue, 22 Jul 1997 20:37:09 -0700 (PDT) From: Shawn Ramsey To: questions@freebsd.org Subject: shell script Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk OK.. I know this isnt exactly the place for this.... but there are a lot of bright people on this list. :) I am trying to use the following shell script as a CGI script : #! /bin/sh echo $PrintHeader; echo ""; echo $1; echo "
";
grep $1.....$2 /var/log/ts1.redusage.txt.detail | awk '{sum += $6 ; print
$0"
 "  sum}';

echo "
"; echo ""; This script WILL work from a web page if called like the this : http://address.com/cgi-bin/use1?username....Month Somewhat.. if you go to http://cyberg8t.com/cgi-bin/use1?rifka.....July you can see what im trying to do... thanks if anyone would be nice enough to help. :)