I'm writing a simple script to take the input received from a embedded bar code scanner to keep appending to a script.
According to the manufacture of the Linux based scanner "the scanner data is redirected to appear as user input,and to just use the bash script 'read' command."
So my simple test script is:
Code:
#!/bin/sh
read foo
echo $foo >> /jffs2/data/foo.txt
Nothing is being sent to the foo.txt file.
Any ideas?
I have googled to no avail thinking maybe the read command requires something since enter is never pushed.
Any ideas on what I should try?