Tag Info

New answers tagged

1

I’m not sure I understand the big picture of what you’re asking for, but I have a couple of approaches that you might want to consider: Use dd to read your input file exec 3 < input_file while true do dd bs=1 count=1 <&3 > this_byte if ! [ -s this_byte ] # If size is zero, we’re done. then break fi code using ...


0

You can use perl instead: $ printf '%s%s%s' 'ăâé' | LC_ALL=C.UTF-8 perl -Mopen=locale -ne ' BEGIN { $/ = \1 } printf "%s\n", $_; ' ă â é


2

If your program is logging without recreating the file (by opening it) you shoujld be able to do it by creating the file as a pipe: mkfifo potato.log You can send message to the pipe as if you were writing to the file: $ # This is the logging process: $ echo "Warning!" > potato.log And read them: $ # This is the listener process: $ cat potato.log ...


1

The steps bellow worked for me: Firstly you have to pair the devices. Pairing is relatively easy. I will call client (who starts talking) and server (who replies) You have to setup the server before: Server side (as root): sdptool add --channel=3 SP mknod -m 666 /dev/rfcomm0 c 216 0 rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux Client ...


0

Ah, thanks to a colleague at lunch who pointed out there isn't a single standard for serial headers. From the X10SAE manual: And I see a cable store that sells crossed and straight: * CROSSED PINOUT * 18" Serial Port Cable DB-9 Male TO 10 PIN IDC Socket * STRAIGHT PINOUT * 18" Serial Port Cable DB-9 Male TO 10 PIN IDC Socket I'll try hand rewiring ...



Top 50 recent answers are included