I don't think there are many Ruby/Rails users around here. I'm pretty new to it myself, but I try to help out where I can.
Just a note on using the system call - it will return true or false, depending whether it runs successfully or not. So, you can use it as a test of sorts.
-
if system(file.bat)
-
#the bat file ran, so do this
-
else
-
#it didn't run successfully, so I need to do this instead
-
end
-
Hi improvcornartist,
I have one doubt pertaining to system call and starting my server.
I use the system call --> system("D:\ruby\bin\selenium.cmd")
This starts a server followed by which i would be calling all the methods in my code.
But until the first part of system call ends, i am not able to go to successive methods.
I cant stop the server and then start calling other methods since all methods require server to be up & running.
My question is , Can i start the server and keep it active plus it comes out of the system call and start executing other methods respectively.
Thanks in Advance