From owner-freebsd-questions Sun Sep 27 22:34:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA03471 for freebsd-questions-outgoing; Sun, 27 Sep 1998 22:34:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from peanut.readington.com (peanut.readington.com [207.207.198.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA03466 for ; Sun, 27 Sep 1998 22:34:22 -0700 (PDT) (envelope-from chrismar@peanut.readington.com) Received: from localhost (chrismar@localhost) by peanut.readington.com (8.9.1/8.8.7) with SMTP id BAA03362 for ; Mon, 28 Sep 1998 01:31:32 -0400 (EDT) (envelope-from chrismar@peanut.readington.com) Date: Mon, 28 Sep 1998 01:31:32 -0400 (EDT) From: Chris Martino To: freebsd-questions@FreeBSD.ORG Subject: [OFF TOPIC] Shell Scripting Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, This is a bit off topic, but I figure its worth a shot. I'm trying to create a cgi script that will poll my ISPs com servers and then create a webpage based on if I'm logged in or not. I have it working for the most part, and if I run the script from the command line I get exactly what I'm looking for, but that isn't the case when I execute it from the web browser. I am assuming it has to do with my if statements. I've tried it with 2 if statments and an if else statement, but I get the same results. Can there be if/else statements in cgi's? Anyhow, the script can be executed at www.weirdo.net/scripts/online.sh And instead of posting the whole script to the list I'll only send it to the people that request it. So, if you'd like to help and want to see the script let me know and I'll gladly send it. TIA, Chris -- Chris Martino chrismar@readington.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message