In my Rails 3 project, in the controller, I use the command wget to download files from the Internet and place them on my server. In the controller, I want to check whether wget succeeds in downloading the files. How can I perform that check?
In my Rails 3 project, in the controller, I use the command wget to
Share
From the Ruby docs for the
systemcommand:So, you could do something like this: