# Can't inline calendar for some reason

**URL:** <https://www.ruby-forum.com/t/cant-inline-calendar-for-some-reason/192734>\
**Category:** Ruby\
**Created:** [August 4, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/cant-inline-calendar-for-some-reason/192734 "2010-08-04T17:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grikdog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecccb3/32.png) [@grikdog](https://www.ruby-forum.com/u/grikdog)\
**Post date:** [August 4, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/cant-inline-calendar-for-some-reason/192734/1 "2010-08-04T17:46:25Z")

</div>

Can anyone tell a newbie why this doesn’t produce output in an Apache  
2.2 cgi script?

`/usr/bin/calendar`.each do |a| print a end

I have nearly identical code that DOES work above and below this line,  
both, including date, cal, uptime and /usr/games/fortune.

FWIW, this was WORKING code until I upgraded to Ubuntu Lucid, &/or  
Firefox 3.6.8, &/or Apache 2.2 in the Lucid distribution.

tia,  
d
