title: run console app after boot automatically
body: <p>I made small java app for logging users by ID. It reads input using <strong>System.in.read()</strong> in loop and on Enter key it saves readed string to log file with actual date and time as a new line (it´s designed for use with RFID reader). Each readed symbol is also printed to stdout prefixed with "Readed: "</p>
  
  <p>App works fine when is started by command <strong>java -jar app.jar</strong>.</p>
  
  <p>I want to start this app automatically after system boot so I add start script into <strong>/etc/init.d/</strong></p>
  
  <p>And there is a problem. App is started, but it runs on background. When I redirect stdout to file via <strong>java -jar app.jar >> log.txt</strong> in start script, after reboot and open log file there are many lines with string "Readed: " folowed by non-ascii character, and lines count is growing by a thousands every minute.</p>
  
  <p>I am not able to redirect standard input into this app.</p>
  
  <p>Is there any possibility how to automatically run command in default console(with standard input/output from/to console) when system boots in command-line mode (without GUI)?</p>
  
  <p>I very appreciate any help or advice.</p>