Category Archives: Programming Scripting Languages

A simple Ruby method to send email

scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email send_email “admnistrator@example.com”, :body => “This was easy to send” Source – jerodsanto.net/2009/02/a-simple-ruby-method-to-send-email/

What is the way to iterate through an array in Ruby?

scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This will iterate through all the elements: This will iterate through all the elements giving you the value and the index: Source – stackoverflow.com/questions/310634/what-…ugh-an-array-in-ruby

Common ways to read a file in Ruby?

scmuser created the topic: Common ways to read a file in Ruby? It is also possible to explicitly close file after as above (pass a block to open closes it for you): Source – stackoverflow.com/questions/5545068/what…-read-a-file-in-ruby

Tips for learing phyton scripting

suresh created the topic: Tips for learing phyton scripting Hi everyone. Can any one suggest project for becoming the best in python scripting. Any project where we actually use python scripting in build and release engineering side. – venki rajeshkumar replied the topic: Tips for learing phyton scripting Best would be to start with some… Read More »

Run a .bat file using python code

rajeshkumar created the topic: Run a .bat file using python code from subprocess import Popen p = Popen(“batch.bat”, cwd=r”C:\Path\to\batchfolder”) stdout, stderr = p.communicate() Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn