⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (379 Bytes)
Bug #4608
ยป test.rb
ralovets (Roman Ralovets)
, 04/25/2011 04:08 AM
require
"open-uri"
if
__FILE__
==
$0
begin
# This line causes error, if during downloading a file I press ctrl-c to interrupt the script
`echo anything`
puts
"Getting a file .. waiting for ctrl-c"
open
(
"http://images.4chan.org/hr/src/1303644000146.jpg"
)
puts
"Downloaded"
rescue
Interrupt
=>
e
puts
"Interrupted"
end
end
(1-1/1)
Loading...