ruby pipes to bash commands -


i creating ruby wrapper axel issue http request website directory, parse downloadable content, , pass full url off axel download 1 one sequentially axel doesnt have ability. (got idea firefox's "downthemall!" plugin.)

my question is, possible in ruby take axels stdout response , display ruby wrapper real time or maybe ever x seconds? know if used ticks or %w() method of running command not see results stdout until after axel has completed downloading, wondering if @ possible grab output while running can display download status inside wrapper. (using -a flag on axel alternate view doesn't scroll screen.)

thanks information can inform me towards topic.

ps: if have redraw screen, don't mind. in axels stdout every x seconds, clear screen, , output new information wrapper.

after bit of talking friend pointed me needed.

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/pty/rdoc/pty.html


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -