Well, and the real way to be sure is to login to the Wyse box itself (<a href="mailto:user@172.30.0.31">user@172.30.0.31</a>) and run /usr/local/bin/open-door which is the actual binary that frobs the data lines on the parallel port.<div>
<br></div><div>Only then, if that breaks, would I call things "broken". The retardedness with ssh and sshpass was one of the motivators for me writing the daemon -- SSHing in just to execute a tiny commands is super-crazy-elephant-gun-sized overkill. The CPU on there isn't that fast, so if many people trigger it at once it slows down.</div>
<div><br></div><div>That's why I'd like a little daemon that can be triggered with a UDP packet (and a detent mechanism). It's fast, simple, and relatively hard to break, and an interface to it is a simple invocation of netcat away.</div>
<div><br></div><div>I hope to be by and experiment with it tonight.</div><div><br></div><div>Cheers,</div><div>jof</div><div><br><div class="gmail_quote">On Sun, Nov 13, 2011 at 1:13 PM, miloh <span dir="ltr"><<a href="mailto:froggytoad@gmail.com">froggytoad@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div><br></div>The hardware isn't broken.  <div><br></div><div><br></div><div>Your software is broken.  I just tested it at noisebridge.  Did you read the thread on it?  <a href="https://www.noisebridge.net/pipermail/rack/2011-November/001095.html" target="_blank">https://www.noisebridge.net/pipermail/rack/2011-November/001095.html</a></div>

<div><br></div><div>using the sshpass utility with -fnq doesn't work, perhaps the utility doesn't work the same way it did after the system upgrades.</div><div><br></div><div><br></div><div><div>pony% diff /usr/local/bin/opengate /usr/local/bin/bacngate | grep sshpass</div>

<div>< sshpass -p 'live' ssh -fnq -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <a href="mailto:user@172.30.0.31" target="_blank">user@172.30.0.31</a> "bash -c 'open-door'" > /dev/null</div>
<div>
< <span style="white-space:pre-wrap">                        </span>USELOGIN="sshpass -p 'live'"</div><div>> sshpass -p 'live' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <a href="mailto:user@172.30.0.31" target="_blank">user@172.30.0.31</a> "bash -c 'open-door'" > /dev/null &</div>

<div>> sshpass -p 'live' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <a href="mailto:user@172.30.0.31" target="_blank">user@172.30.0.31</a> "bash -c 'if [ ! -f /usr/bin/beep ]; then sudo apt-get -y install beep ; fi ; beep -f 665.4064 -l 200 -n -f 550 -l 200 -n -f 666 -l 100 -f 200 -l 50 -n -f 1093.00 -l 100 -n -f 2186.01 -l 50 -n -f 65.4064 -l 100 -n -f 130.813 -l 100 -n -f 461.626 -l 100 -n -f 423.251 -l 100 -n -f 446.50 -l 50 -n -f 873.00 -l 100 -n -f 1686.01 -l 300 -n -f 261.626 -l 200'" > /dev/null&</div>

<div>> # sshpass -p 'live' ssh -fnq -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <a href="mailto:user@172.30.0.31" target="_blank">user@172.30.0.31</a> "bash -c 'aplay test.wav'"</div>
<div>pony% </div>
</div><div><br></div><div><br></div>
<br>_______________________________________________<br>
Rack mailing list<br>
<a href="mailto:Rack@lists.noisebridge.net">Rack@lists.noisebridge.net</a><br>
<a href="https://www.noisebridge.net/mailman/listinfo/rack" target="_blank">https://www.noisebridge.net/mailman/listinfo/rack</a><br>
<br></blockquote></div><br></div>