while read line
do
echo "$line"
echo -en "\x00"
done > /dev/cu.usbserial-FTKVMAFF
got this from an apple site. I looked at
the man page for echo and bash, I have a
hard time reading man pages, but for echo
I don't have -e, it just has -n? Is -e
part of bash? Do you think the above
would work? If I put it in a text file?
Sent from my iPhone
On Sep 28, 2009, at 1:06 PM, Dave Mielke <[email protected]> wrote:
[quoted lines by james collins on 2009/09/28 at 12:29 -0400]
Just wondering what I am doing wrong? I want to use cat, but I want
to
append a NUL character to what I type? I tried typing:
echo -e -n '\000' | cat > /dev/cu.usbserial -FTKVMAFF
What I was hoping would happen, is my cursor would drop down a line
and I would be in the cat command, I would then right some text and
when I hit return, a NUL character would be appended to the text I
had
written and my synthesizer would speak the words I had written?
I think you mustn't be very familiar with Unix-style operating
systems.
When you join two commands with |, what you're doing is redirecting
the input
of the second command (in your case, cat) away from your keyboard
and to the
output of the first command (in your case, echo).
There's no magic way to do what you're wanting to do. If you want a
NUL
appended to each line you type before that line is written to your
synthesizer
then you're going to have to write a simple program to do exactly
that. In this
case, a fairly simple shell script should suffice.
--
Dave Mielke | 2213 Fox Crescent | The Bible is the very
Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario | 2011 May 21 is the Day
of Judgement.
EMail: [email protected] | Canada K2A 1H7 | 2011 Oct 21 is the End
of the World.
http://FamilyRadio.com/ | http://Mielke.cc/bible/
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty