On Sat, Feb 19, 2011 at 4:27 PM, Rajesh kumar <rkrajeshkuma...@gmail.com> wrote: > stdin is working properly when the process is on the foreground. > > Its not working on the back ground >
This is by design. If you want to read from stdin in a background process I dunno what options are available. Background process by definition cannot read from stdin. At least not without a significant complexity and uneasiness. So you should redirect stdout of the bar code reader to a file and read from it. That is what I normally do when I read in the background. Best is a FIFO like this. $ mkfifo /tmp/barcodedata $ procout > /tmp/barcodedate& $ gedit < /tmp/barcodedata or some such thing. A background process always redirects stdin and stdout and stderr to /dev/null -Girish _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc