I'm trying to create a shell script which turns my TV on/off via serial / RS232. I'm using OSX.

I think I'm close...

The RS232 commands:
Code:
STXPONETX  -- Power On
STXPOFETX  -- Power Off
If I run
Code:
screen /dev/tty.PL2303-0000101D
Then type ctrl-B, P, O, N, ctrl-C the TV turns on, proving that the serial port is configured properly, cable is good, etc.

Now how do I make a shell script do the same thing?
I tried:
Code:
printf "\x02POF\x03" > /dev/tty.PL2303-0000101D
echo "\x02POF\x03" > /dev/tty.PL2303-0000101D
No dice. Both commands just hang, I have to ctrl-C them.

Any ideas??