Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2009 14:02:32 -0500
From:      Charles Howse <chowse@charter.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   /usr/bin/calendar in cgi script
Message-ID:  <251E39DC-2EEE-4E43-9B4C-3F273B19AD09@charter.net>

next in thread | raw e-mail | index | archive | help
Hi,
I have a cgi script on my website that runs:

/usr/bin/calendar -f /usr/share/calendar/calendar.history

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:

<http://bubbabbq.homeunix.net/history_cgi.shtml>;

How can I make multiple events show on separate lines, like it does in  
terminal?


--
Thanks,
Charles

Reasons it's great to be a guy...
You get to think about sex 90% of your waking hours.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?251E39DC-2EEE-4E43-9B4C-3F273B19AD09>