File diff: [root]/scripts @ ffe1b809e0b | log | faq | css

diff --git a/scripts/emul29ah.erb b/scripts/emul29ah.erb
index da7eec9..42abba5 100644
-- a/scripts/emul29ah.erb
++ b/scripts/emul29ah.erb
@@ -5,7 +5,9 @@
<input type="submit" />
</form>

<% if params[:sentence] %>

<%
response = Open3.popen3("hmark /home/bitcheese_net/l29ah burst") do |stdin, stdout, stderr|
stdin.write(params[:sentence])
stdin.close
@@ -13,11 +15,11 @@
Rails.logger.error "hmark fucked up: #{err}" unless err.empty?
stdout.read
end
end
%>

<h2> Ответ Эмуляха </h2>

<pre>
<%= h response %>
</pre>
\ No newline at end of file
[you] <%= h params[:sentence] %>
[emul29ah] <%= h response %>
</pre>

<% end %>
\ No newline at end of file

By Voker57 on 2014-09-14 18:19:40 +0400 Powered by bitcheese wiki engine