From: Ari Brown Date: 2007-04-29T08:55:05+09:00 Subject: Re: How to run script file using system command On Apr 26, 2007, at 7:29 AM, Dhiraj Girdhar wrote: >> The problem is right here. system doesn't need a puts to be used, so >> when you try to puts the value of a block (a block of code, and the >> block is abc = system("./export/home/dhiraj/scriptfile.sh")), you get >> false. It doesn't have a value. You can just have it say: >> >> system("./export/home/dhiraj/scriptfile.sh") >> >> and it will work. > Hello Ari > > Here variable abc is ued to collect the return value of system command > as > system command returns some value. > > Return value of system states that whether the command executed > successfully or not. Ohhhhhhh! Well now THAT makes sense. In that case, i retract my comment and fully commit myself to ruby indulgence and education. Pshhh, not like I already haven't/ ---------------------------------------------------------------| ~Ari "I don't suffer from insanity. I enjoy every minute of it" --1337est man alive