From owner-freebsd-questions Mon Mar 25 11:28:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tninet.se (lennier.tninet.se [195.100.94.105]) by hub.freebsd.org (Postfix) with ESMTP id A4E4537B400 for ; Mon, 25 Mar 2002 11:28:25 -0800 (PST) Received: from cs.umu.se (h27n1c1o1023.bredband.skanova.com [213.64.164.27]) by lennier.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 874615.84194.1017.1s15014058lennier ; Mon, 25 Mar 2002 20:23:14 +0100 Message-ID: <3C9F7922.C0F9AACB@cs.umu.se> Date: Mon, 25 Mar 2002 20:23:14 +0100 From: Paul Everlund X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: Drew Tomlinson Cc: Dan Nelson , Walter Hop , smorton@acm.org, questions@FreeBSD.ORG Subject: Re: Showing Uptime Via webpage References: <3C9E0754.2010104@verizon.net> <006201c1d423$ee01be00$f82a6ba5@lc.ca.gov> <200203251840.33315@silver.dt1.binity.net> <007a01c1d426$38b2c410$f82a6ba5@lc.ca.gov> <20020325182247.GD14939@dan.emsphone.com> <008401c1d42d$7ad8f420$f82a6ba5@lc.ca.gov> <3C9F74C8.9165C0F1@cs.umu.se> <00ce01c1d430$d748dd80$f82a6ba5@lc.ca.gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [big snip] > #!/usr/bin/perl > print "Content-type: text/plain\n\n"; > system ("uptime"); > The font changes but the uptime is still not displayed. Take a look at http://www.cs.umu.se/~tdv94ped/cgi-bin/up.html I'm using the following (path to perl is different as this is run on another Unix)... File "up": #!/usr/local/bin/perl print "Content-type: text/plain\n\n"; system("uptime"); -rwxr-xr-x 1 tdv94ped tdv94 80 Mar 25 20:16 up* File "up.html": -rw-r--r-- 1 tdv94ped tdv94 52 Mar 25 20:15 up.html If this doesn't work on your FreeBSD box something is very strange. Strange as you're able to run other types of CGI-scripts, but not this particular. I hope someone can help you out, or that you find out yourself. Good luck! Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message