Tried both the approaches but neither worked.
I'm running these scripts from /cgi-bin directory of Apache which is set 
to "execute" all the scripts, but dont know why its not working out.

-- 
Posted via http://www.ruby-forum.com/.