# Commit2rss.rb - running on hooking up CVS NT

**URL:** <https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952>\
**Category:** Ruby\
**Created:** [September 25, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952 "2006-09-25T20:15:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 25, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952/1 "2006-09-25T20:15:30Z")

</div>

Hi all,

I’m trying to get Dave T.’ commit2rss.rb ruby script running on  
windows XP using CVS NT v2.0.51d. The script is at  
[http://pragmaticprogrammer.com/downloads/commit2rss/commit2rss.rb.txt](http://pragmaticprogrammer.com/downloads/commit2rss/commit2rss.rb.txt)

I’ve removed unix references to etc and Etc.getpwuid parts. and my  
command in the CVS loginfo is as follows

# Ruby script to generate an RSS feed for commits to Underwriting module

Underwriting/\* D:\development\test-workspace\scripts\commit2rss.rb %{}

I’m stumped as to why I’m getting the following error on commit. I’ve  
included the some verbose output from cvs.

→   
loginfo:Parse\_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,D:\development\test-workspace\scripts\commit2rss.rb  
%{} )  
 → run\_popen(D:\development\test-workspace\scripts\commit2rss.rb  
“Underwriting/JavaSource” )  
D:/development/test-workspace/scripts/commit2rss.rb:44:in `gets’: Bad  
file descriptor (Errno::EBADF)  
from D:/development/test-workspace/scripts/commit2rss.rb:44

Line 44 refers to this block of code

while line = STDIN.gets  
line.chomp!  
if line =~ /^[A-Z]._:\s_$/  
desc \<\< “

**” \<\< line \<\< “** ”  
else  
desc \<\< line  
end  
desc \<\< “  
”  
end

I’d appreciate any help on this.

Thanks,  
Paul

This message is for the designated recipient only and may contain  
privileged, proprietary, or otherwise private information. If you have  
received it in error, please notify the sender immediately and delete  
the original. Any other use of the email by you is prohibited.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 26, 2006, 12:12am UTC](https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952/2 "2006-09-26T00:12:07Z")

</div>

removed\_email\_address@domain.invalid wrote:

/ …

loginfo:Parse\_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,D  
\development\test-workspace\scripts\commit2rss.rb

Hoo-boy. I think you need to decide which path delimiter to use, and  
stick  
to your single choice. The above line is truly ecumenical, but I don’t  
think Ruby is. I don’t have a Windows system to find out how Ruby reacts  
to  
these freely mixed delimiters, but this line really stands out.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 26, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952/3 "2006-09-26T13:16:37Z")

</div>

I’ve removed that potential problem from the script, but to no avail.  
From reading through some of the news groups there seems to be some  
suggestion that Ruby needs to have a real console to read from STDIN.  
Whether this is specific to Ruby on Windows I do not know.

Does anyone have knowledge of Ruby on Windows to answer this?

Thanks,  
Paul

* * *

From: Paul L. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Mon 25/09/2006 23:10  
To: ruby-talk ML  
Subject: Re: commit2rss.rb - running on hooking up CVS NT

removed\_email\_address@domain.invalid wrote:

/ …

loginfo:Parse\_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,D  
\development\test-workspace\scripts\commit2rss.rb

Hoo-boy. I think you need to decide which path delimiter to use, and  
stick  
to your single choice. The above line is truly ecumenical, but I don’t  
think Ruby is. I don’t have a Windows system to find out how Ruby reacts  
to  
these freely mixed delimiters, but this line really stands out.

–  
Paul L.

> **[\* arachnoid.com](https://arachnoid.com/)**
>
> A site for people who think. Intellectual resources, programming, astronomy, science, mathematics, Java/JavaScript applets, programming instruction, home of Arachnophilia.

This message is for the designated recipient only and may contain  
privileged, proprietary, or otherwise private information. If you have  
received it in error, please notify the sender immediately and delete  
the original. Any other use of the email by you is prohibited.
