How to open a url and then check if it is still opened or not in ruby? -
I have seen many ways to open URLs in the browser in Ruby, but there is no way to check that it Still open or not? I found something here - but then it looks like this ruby version & gt; = 1.9.2 works with
and I have ruby 1.8.7 (2011-06-30 patchlay 352) [i686 -linux]
so I do not want to change this installation. So is there any way by which I can open a URL and then check that this example of tab or browser is closed or is still open or not ???
So, what I originally wanted to do was URL in a browser so that the server could redirect my script to that URL. The script that writes the file provided by the server to a file and my Ruby app has to read the contents of the file. So if I know that the URL is off it means that my Ruby app can now get the code from the file.
You can get the process ID, then you can wait for that process to exit, or So in your main thread or in another thread.
You can do this process by using the stdlib integration: View
Comments
Post a Comment