Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6832
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Robert Klemme <shortcutter@googlemail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: IO.popen hanging |
| Date | Wed, 12 Jun 2013 08:08:44 +0200 |
| Lines | 35 |
| Message-ID | <b1qhjcFhgrpU1@mid.individual.net> (permalink) |
| References | <51b72d29$0$2103$426a74cc@news.free.fr> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | individual.net jtXCXAFgSooaGAHots1ilg/o5ePA7WoktdACcflL5+dfIWxBk= |
| Cancel-Lock | sha1:YGMjzFfDvbGcq635VfoePly1fwQ= |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
| In-Reply-To | <51b72d29$0$2103$426a74cc@news.free.fr> |
| Xref | csiph.com comp.lang.ruby:6832 |
Show key headers only | View raw
On 06/11/2013 03:59 PM, Une Bévue wrote:
> if i do, on terminal :
>
> echo -n "something" | /usr/bin/xclip -selection c
>
> the time to exec is instantaneous.
>
> however using either :
>
> `echo -n "#{@prefix}" | /usr/bin/xclip -selection c `
>
> or :
>
> IO.popen(["/usr/bin/xclip","-selection","c"], "w+") do |io|
> io.write @prefix
> io.close_write
> IO.copy_stream(io, $stdout)
> end
>
>
> @prefix being :
> @prefix=Time.new.strftime("%y-%m-%d--%H-%M-%S--")
>
> it takes several minutes...
>
> why ?
I have no idea. You could try to use strace to show what xclip is doing
all the time.
Kind regards
robert
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar
IO.popen hanging Une Bévue <unbewusstsein@fai.invalid> - 2013-06-11 15:59 +0200
Re: IO.popen hanging Robert Klemme <shortcutter@googlemail.com> - 2013-06-12 08:08 +0200
Re: IO.popen hanging Une Bévue <unbewusst.sein@fai.invalid> - 2013-06-12 09:45 +0200
Re: IO.popen hanging Robert Klemme <shortcutter@googlemail.com> - 2013-06-17 18:42 +0200
csiph-web