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
Post a Comment