Skip to content

Instantly share code, notes, and snippets.

@brunetton
Created January 19, 2018 14:55
Show Gist options
  • Save brunetton/8135db98380e8eee6ea4e572e257ade2 to your computer and use it in GitHub Desktop.
Save brunetton/8135db98380e8eee6ea4e572e257ade2 to your computer and use it in GitHub Desktop.
Ruby Zenity progress bar
zenity_with_options = 'zenity --progress --title="Working..." --text="Analyse des journaux de mail... --auto-close'
IO.popen(zenity_with_options.split(' '), 'w') do |io|
for i in 1..10
io.puts(i * 10)
sleep(1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment