Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2009 15:09:53 -0400
From:      Brad Mettee <bmettee@pchotshots.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: /usr/bin/calendar in cgi script
Message-ID:  <4.3.2.7.2.20090411150921.02e611b8@mail.pchotshots.com>

next in thread | raw e-mail | index | archive | help
You'll need to put it in a "<pre> </pre>" html block to preserve the 
formatting. Or you can try to substitute the '\n' into '<br>' somehow (been 
a while since I did search/replace in an include so I can't be more specific).


At 03:02 PM 4/11/2009, you wrote:
>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.
>
>
>_______________________________________________
>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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20090411150921.02e611b8>