U
Une Bévue
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 ?
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 ?