Permalink
Browse files

switched to backticks

  • Loading branch information...
Missy Missy
Missy authored and Missy committed May 2, 2013
1 parent 9ea8a45 commit cf8e77135eae355c8f74045518caad4c5e8c8267
Showing with 2 additions and 1 deletion.
  1. +2 −1 squirrel/replay.rb
View
@@ -172,7 +172,8 @@ def execute_query(query, data)
data['new_start_time'] = Time.now.to_f * 1000
#puts "curl -s -XGET #{Settings.host}:#{Settings.port}/#{data['index']}/_search/ -d '#{query}'"
cmd = build_curl_command_string(query, data)
- curl_result = %x(#{cmd})
+ puts cmd
+ curl_result = `#{cmd}`
puts curl_result.inspect
#curl_result = `curl -s -XGET '#{@host}:#{@port}/#{data['index']}/_search/' -d '#{query}'`
#data['new_end_time'] = Time.now.to_f * 1000

0 comments on commit cf8e771

Please sign in to comment.