title: Using STDIN in a Linux init script
body: <p>I'm currently working on an embedded system that needs to read keyboard input (Actually - it needs to read a keyboard-emulated barcode scanner).</p>
  
  <p>I'm using a SheevaPlug with Debian Squeeze for the hardware part, and I'm using a pretty basic init script that fires a python program that's in charge of doing the business logic.</p>
  
  <p>It's that script that needs to read keyboard input.</p>
  
  <p>We've worked on development versions that were basically full featured computers, with a screen and stuff, and it worked pretty OK - but it's not really acceptable -, but here I don't really grasp what's wrong (Although I admit that I kinda expected it).
  <br/><br/><br/></p>
  
  <p>So I'd like to know how it would be possible to somehow connect the keyboard to my script's STDIN when init starts it.</p>
  
  <p>Alternatively, I'd be interested if someone knows a python library that would allow me to bypass the problem entirely and read directly from input/eventX.</p>
  
  <p><br/><br/></p>
  
  <p>Thanks in advance</p>