From owner-freebsd-questions@FreeBSD.ORG Sun Apr 12 21:30:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33D0C1065677 for ; Sun, 12 Apr 2009 21:30:56 +0000 (UTC) (envelope-from chowse@charter.net) Received: from mta11.charter.net (mta11.charter.net [216.33.127.80]) by mx1.freebsd.org (Postfix) with ESMTP id BDB4B8FC1B for ; Sun, 12 Apr 2009 21:30:55 +0000 (UTC) (envelope-from chowse@charter.net) Received: from imp09 ([10.20.200.9]) by mta11.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090412213054.YIL21265.mta11.charter.net@imp09>; Sun, 12 Apr 2009 17:30:54 -0400 Received: from larry.local ([24.176.103.31]) by imp09 with smtp.charter.net id elWq1b0090gfJ3405lWrt3; Sun, 12 Apr 2009 17:30:54 -0400 Message-Id: <741100C7-213A-417F-8B0C-CDA3D3DD57E3@charter.net> From: Charles Howse To: Modulok In-Reply-To: <64c038660904121358r4f2e7282nc2bc09af7b94a7f9@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 12 Apr 2009 16:30:48 -0500 References: <251E39DC-2EEE-4E43-9B4C-3F273B19AD09@charter.net> <18912.60033.242203.912434@jerusalem.litteratus.org> <845EB734-909E-4B97-9ABD-8ABBADFA291B@charter.net> <64c038660904121358r4f2e7282nc2bc09af7b94a7f9@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) Cc: FreeBSD Questions Subject: Re: /usr/bin/calendar in cgi script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2009 21:30:56 -0000 Yes, I was reminded of the
 
tags, and that solved it. Thanks! On Apr 12, 2009, at 3:58 PM, Modulok wrote: > I don't know what program you're using for your CGI stuff, but > basically all that is needed is the '
' tags. Here is an
> example which uses PHP to call the system 'calendar' command:
>
> 
> 
> 
> 	
> 	Modulore Training Media
> 
> 

> Hello world. Calling UNIX calendar program via PHP: >

>

>  system("calendar -f calendar.history");
> ?>
> 
> > > > On 4/11/09, Charles Howse wrote: >> >> On Apr 11, 2009, at 2:07 PM, Robert Huff wrote: >> >>> >>> Charles Howse writes: >>> >>>> Now, when I run that script in a terminal, the output is perfectly >>>> formatted, multiple lines (if there are multiple events on this >>>> date), >>>> date first, event, year. Just right. >>>> >>>> But, when I put that in an "include" statement in a webpage, the >>>> output is a single line, regardless of whether there are multiple >>>> events. >>>> You can see a bad example here: >>>> >>>> >>>> >>>> How can I make multiple events show on separate lines, like it >>>> does in terminal? >>> >>> Would I be correct in believing you're unfamiliar with html? >> >> You would most certainly NOT BE CORRECT. I've had my own server >> running Apache for years. >> >> I don't think this is something that can be solved with html tags, >> but >> I will try Brad's suggestions. >> Read man calendar about how it uses cpp, and how the calendar.* files >> are formatted. >> If I recall, I used this same technique years ago and had a simple, >> elegant way of solving it using some default tool like col, though >> that doesn't seem to work now. >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org >> " >>