Page: [root]/scripts/emul29ah.erb | src | log | faq | css

<h1> Эмулях </h1>

<form action="" method="post">
<input type="text" name="sentence" style="width: 100%" /> <br />
<input type="submit" />
</form>

<% if paramssentence %>

<%
response = Open3.popen3("hmark /home/bitcheese_net/l29ah burst") do |stdin, stdout, stderr|
stdin.write(paramssentence)
stdin.close
err = stderr.read
Rails.logger.error "hmark fucked up: #{err}" unless err.empty?
stdout.read
end
%>

<pre>
[you] <%= h paramssentence %>
[emul29ah] <%= h response %>
</pre>

<% end %>


Last edited: Voker57 on 2014-09-14 18:58:41 +0400
Powered by bitcheese wiki engine