From: Justin Collins Date: 2006-05-03T01:30:50+09:00 Subject: Re: Calling Shell Scripts from Ruby ? Dinesh Umanath wrote: > Hi all, > > I have two questions > > 1)Is it possible to call "Shell Scripts" from ruby? Say if i have a > shell sciprt named "test.sh", how can i call this from ruby? Also if i > can call like that,is it possible to get the output of that script > passed back to ruby? > > 2)How can i call any "Unix command" residing from a ruby program?? > > > Thank You > Dinesh > > 1 & 2) Use `test.sh` (or system("test.sh") if you do NOT want the output) -Justin