Shajith wrote: > henon wrote: > >> >> i get the same error on windows. however, when you write a small >> script like this: >> ---- >> require 'digest/md5' >> >> Digest::MD5.new(File.read("<filename>")).hexdigest >> ---- >> it works fine. >> >> -- henon >> > You could try 'require'-ing it on the command line, like, > ruby -rmd5 -e 'Digest::MD5.new(File.read("<filename>")).hexdigest' > > Isn't this expected behavior? > > --fin > Thanks everyone. The following single line command worked for me and printed the result on the command line (Of course the script version worked as well). ruby -rmd5 -e 'p Digest::MD5.new(File.read("<filename>")).hexdigest'